451 Greylisted, please try again in 900 seconds

Discussion in 'ASP.NET 2.0' started by jfidler, Jun 19, 2008.

  1. I created an email account last week for the @trendseniors.com account to receive the content of a submitted form. When SmtpMail.Send(mail); is executed, I receive the following error 'The server rejected one or more recipient addresses. The server response was: 451 Greylisted, please try again in 900 seconds'. Below is the code in my aspx.cs file.

    //send email
    MailMessage mail = new MailMessage();
    mail.To = ConfigurationManager.AppSettings['emailAddr'].ToString();
    mail.From = ConfigurationManager.AppSettings['emailAddr'].ToString();
    mail.Subject = 'Trend Seniors Magazine Request';
    mail.Body = saveContent;
    SmtpMail.SmtpServer = ConfigurationManager.AppSettings['smtpServer'].ToString();

    SmtpMail.Send(mail);

    When executed on my local server referencing my yahoo account, it works fine.

    Please help.
     
  2. Set the smtp server to "localhost" when sending from DiscountASP web servers.

    Aristotle

    DiscountASP.NET
    www.DiscountASP.NET
     

Share This Page