PDA

View Full Version : SmtpMail ...followed examples here and still fails with 550 error...


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

bruce
05-30-2005, 02:23 AM
This is very strange!!

Try create a support ticket, they may be able to create a piece of test code to confirm the problem.

Bruce

DiscountASP.NET
www.DiscountASP.NET (http://www.DiscountASP.NET)

colepc
05-30-2005, 04:12 AM
It appears to be working normally. Either DASP tech support is the fastest in the world (sub 3 minutes) or it was a temporary thing.

Thanks, Bruce.