hello sir i am raghuvar
actually i am createing a form to send mail in ASP.net but i am getting an error
"The server rejected one or more recipient addresses. The server response was: 451 Greylisted, please try again in 300 seconds "
so what is the solution of this please tell me early.
The code which are using tosend mail is given below.
MailMessage M = new MailMessage();
M.To = "
[email protected]";
M.From = "
[email protected]";
M.Subject = "how are you raghuvar";
M.Body = "raghuvar you are working where";
M.BodyFormat = MailFormat.Html;
try
{
SmtpMail.SmtpServer = "mail.softindigo.com";//mail.softindigo.com is the smtpservername
SmtpMail.Send(M);
Response.Write("mail send sucessfully");
}
catch (Exception ex)
{
Response.Write(ex.Message);
}
}