SmtpMail ...followed examples here and still fails with 550 error...

Discussion in 'ASP.NET / ASP.NET Core' started by colepc, May 29, 2005.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. 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 = "[email protected]"
    msg.From = "[email protected]"
    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
     
  2. Bruce

    Bruce DiscountASP.NET Staff

    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
     
  3. 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.
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page