473,386 Members | 1,803 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Problem with a SMTP server in ASP.NET application

Hello all,

I have a simple ASP.NET application that should send an e-mail on submit
using Mail object. I have configured the application to use a SMTP server
located on the same machine. However, when executed, the script returns an
error:

"The server rejected one or more recipient addresses. The server response
was: 550 5.7.1 Unable to relay for hr*****@recro.hr"

What makes this error strange to me is the fact that the very same SMTP
server works fine and sends mails from old ASP pages (that use CDONTS
object) that are also located on the same machine. What could be a problem
with my ASP.NET pages? DNS server is also located on the same machine.

Thank you,
Hrvoje
Nov 18 '05 #1
3 1095
Are you using the same From: address as in your ASP pages?

In article <OD**************@tk2msftngp13.phx.gbl>, hr*****@recro.hr
says...
Hello all,

I have a simple ASP.NET application that should send an e-mail on submit
using Mail object. I have configured the application to use a SMTP server
located on the same machine. However, when executed, the script returns an
error:

"The server rejected one or more recipient addresses. The server response
was: 550 5.7.1 Unable to relay for hr*****@recro.hr"

What makes this error strange to me is the fact that the very same SMTP
server works fine and sends mails from old ASP pages (that use CDONTS
object) that are also located on the same machine. What could be a problem
with my ASP.NET pages? DNS server is also located on the same machine.

Thank you,
Hrvoje


--
~ James Crowley
http://www.developerfusion.com/
Nov 18 '05 #2
No, I've been using some generic one word name, not a real e-mail address.
But such approach worked in ASP....

Hrvoje


"James Crowley" <ja***@NOSPAMdeveloperfusion.com> wrote in message
news:MP************************@news.microsoft.com ...
Are you using the same From: address as in your ASP pages?

In article <OD**************@tk2msftngp13.phx.gbl>, hr*****@recro.hr
says...
Hello all,

I have a simple ASP.NET application that should send an e-mail on submit
using Mail object. I have configured the application to use a SMTP server located on the same machine. However, when executed, the script returns an error:

"The server rejected one or more recipient addresses. The server response was: 550 5.7.1 Unable to relay for hr*****@recro.hr"

What makes this error strange to me is the fact that the very same SMTP
server works fine and sends mails from old ASP pages (that use CDONTS
object) that are also located on the same machine. What could be a problem with my ASP.NET pages? DNS server is also located on the same machine.

Thank you,
Hrvoje


--
~ James Crowley
http://www.developerfusion.com/

Nov 18 '05 #3
"Hrvoje Vrbanc" <hr*****@recro.hr> wrote in news:ODESy7G9DHA.1548
@tk2msftngp13.phx.gbl:
I have a simple ASP.NET application that should send an e-mail on submit
using Mail object. I have configured the application to use a SMTP server
located on the same machine. However, when executed, the script returns an
error:

"The server rejected one or more recipient addresses. The server response
was: 550 5.7.1 Unable to relay for hr*****@recro.hr"


This is normal and for SPAM protection. SMTP servers now days typically ONLY
accept mail for local accounts. To get them to relay you have to authenticate
against the SMTP server, or be in a list of approved IPs. However most admins
dont set up list of approved IPs as they can be spoofed.

So you need to authenticate.

--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"
ELKNews - Get your free copy at http://www.atozedsoftware.com

Nov 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Alex | last post by:
I wrote an asp program to send email. I set SMTP as 127.0.0.1 and it worked well in Windows 2000 server but not in Windows 2000 Professional. What is different between server and professional. My...
3
by: Shannon Clyde | last post by:
SMTP + relay + auth in an IPSEC tunnel to connect to our primary SMTP mail server (GroupWise) from the Web server looks like it would work fine, but is it the best way? I am aware of CDOSYS and...
6
by: Zagor | last post by:
I have a feedback form in my website with three TextBoxes and a SEND button in a user control. Below is a piece of the code: //On click event for the send LinkButton private void...
7
by: Santosh | last post by:
Dear all, i am wrtiing following code for the sending email from the my asp application when i am working on the local machine i will work fine ans send email on the mentioned address. but when i...
4
by: MartinJackson | last post by:
Using SQL Server 2005 Express. I want to create and maintain the SQL database and tables from within a VB6 application. First I need to create an empty database file. This I can't do. Using...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.