469,964 Members | 1,662 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,964 developers. It's quick & easy.

Send mail error

Hello,
I have a web form that is a email page. When the user fills out the form and
clicks send there is a "The server rejected one or more recipient addresses.
The server response was: 550 5.7.1 Unable to relay for Pa*********@aol.com"
error. here is the code:
Dim msgMail As New MailMessage

msgMail.To = "Pa*********@aol.com"

msgMail.From = TextBox1.Text

msgMail.Subject = TextBox2.Text

msgMail.Body = TextBox3.Text

'SmtpMail.Send(msgMail.From.ToString, msgMail.To.ToString,
msgMail.Subject.ToString, msgMail.Body.ToString)

SmtpMail.SmtpServer="daMachine"

SmtpMail.Send(msgMail)

Now my SMTP server is the Virtual SMTP server that comes with iis is that
the problem? Do I have to set anything else up in IIS? What do I have to
do to get this puppy to work? Thanks
Nov 17 '05 #1
2 2278
you can setting the value of smtpserver to "" this works as well or
"localhost"
Also make sure that your SMTP server is forwarding to your ISP SMTP Server

If you open the Internet Services Manager
(the IIS admin app) and view the properties
of the SMTP Server, Click on the Delivery tab, then the advanced
button, fill in the hostname of your mail
router/SMTP server in the "Smart Host" field.
like
smtp.yourISPmailServer.com
or
mail.yourISPmailServer.com
or
mail.yoursmtpserver.com
or
IP address
or what ever.

or directly set your SmtpServer = "mail.yoursmptserveratyourisp.com"
try different ways.


"Patrick Hill" <Pr********@nospam.aol.com> wrote in message
news:ep*************@TK2MSFTNGP12.phx.gbl...
Hello,
I have a web form that is a email page. When the user fills out the form and clicks send there is a "The server rejected one or more recipient addresses. The server response was: 550 5.7.1 Unable to relay for Pa*********@aol.com" error. here is the code:
Dim msgMail As New MailMessage

msgMail.To = "Pa*********@aol.com"

msgMail.From = TextBox1.Text

msgMail.Subject = TextBox2.Text

msgMail.Body = TextBox3.Text

'SmtpMail.Send(msgMail.From.ToString, msgMail.To.ToString,
msgMail.Subject.ToString, msgMail.Body.ToString)

SmtpMail.SmtpServer="daMachine"

SmtpMail.Send(msgMail)

Now my SMTP server is the Virtual SMTP server that comes with iis is that
the problem? Do I have to set anything else up in IIS? What do I have to
do to get this puppy to work? Thanks

Nov 17 '05 #2
you can setting the value of smtpserver to "" this works as well or
"localhost"
Also make sure that your SMTP server is forwarding to your ISP SMTP Server

If you open the Internet Services Manager
(the IIS admin app) and view the properties
of the SMTP Server, Click on the Delivery tab, then the advanced
button, fill in the hostname of your mail
router/SMTP server in the "Smart Host" field.
like
smtp.yourISPmailServer.com
or
mail.yourISPmailServer.com
or
mail.yoursmtpserver.com
or
IP address
or what ever.

or directly set your SmtpServer = "mail.yoursmptserveratyourisp.com"
try different ways.


"Patrick Hill" <Pr********@nospam.aol.com> wrote in message
news:ep*************@TK2MSFTNGP12.phx.gbl...
Hello,
I have a web form that is a email page. When the user fills out the form and clicks send there is a "The server rejected one or more recipient addresses. The server response was: 550 5.7.1 Unable to relay for Pa*********@aol.com" error. here is the code:
Dim msgMail As New MailMessage

msgMail.To = "Pa*********@aol.com"

msgMail.From = TextBox1.Text

msgMail.Subject = TextBox2.Text

msgMail.Body = TextBox3.Text

'SmtpMail.Send(msgMail.From.ToString, msgMail.To.ToString,
msgMail.Subject.ToString, msgMail.Body.ToString)

SmtpMail.SmtpServer="daMachine"

SmtpMail.Send(msgMail)

Now my SMTP server is the Virtual SMTP server that comes with iis is that
the problem? Do I have to set anything else up in IIS? What do I have to
do to get this puppy to work? Thanks

Nov 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by jam | last post: by
1 post views Thread by michi | last post: by
14 posts views Thread by Professor Yonce | last post: by
4 posts views Thread by Tony M | last post: by
5 posts views Thread by pat | last post: by
1 post views Thread by rainxy | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.