colepc
05-29-2005, 02:13 AM
Hi,
I've looked at the examples on this forum regarding sending email from an ASP.NET page. The results I'm getting are not consistent with what I'm reading. Any help is appreciated.
The code I'm running includes:
Dim msg As MailMessage = New MailMessage
msg.Cc = txtEmail.Text.Trim & ""
msg.Body = "test email"
msg.Subject = "test email from web"
msg.To = "terry@otherdomain.com"
msg.From = "JoeUser@somedomain.com"
Dim mymail As SmtpMail
mymail.SmtpServer ="localhost"
mymail.Send(msg)
The error produced includes this statement:
The server rejected one or more recipient addresses. The server response was: 550 relaying mail to otherdomain.com is not allowed
Any help?
Thanks,
Terry
I've looked at the examples on this forum regarding sending email from an ASP.NET page. The results I'm getting are not consistent with what I'm reading. Any help is appreciated.
The code I'm running includes:
Dim msg As MailMessage = New MailMessage
msg.Cc = txtEmail.Text.Trim & ""
msg.Body = "test email"
msg.Subject = "test email from web"
msg.To = "terry@otherdomain.com"
msg.From = "JoeUser@somedomain.com"
Dim mymail As SmtpMail
mymail.SmtpServer ="localhost"
mymail.Send(msg)
The error produced includes this statement:
The server rejected one or more recipient addresses. The server response was: 550 relaying mail to otherdomain.com is not allowed
Any help?
Thanks,
Terry