Click here to Skip to main content
15,881,559 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
An erros has occured: The server rejected the sender address. The server response was: 550 Access denied - Invalid HELO name (See RFC2821 4.1.1.1)
Posted
Comments
Anele Ngqandu 30-Nov-12 6:11am    
Where is your code?

A “550 Access Denied – Invalid HELO name” SMTP error usually occurs when the SMTP Domain configured as part of an email sender’s identity does not match the senders email address. So based on that make changes in your code...
 
Share this answer
 
v2
send email with secure connection. use this code for sending email.

public bool SendEmialWithSecure(string ToEmailId, string FromEmailId, string FromName, string SenderEmailId,
string SenderName, string Subject, string MailBody, string SMTPHost, Int32 SMTPPort,
string CredentialEmailId, string CredentialPassword)
{
System.Net.Mail.MailMessage ResetPassMail = new System.Net.Mail.MailMessage();
SmtpClient SmtpServer = new SmtpClient();
ResetPassMail.To.Add(new MailAddress(ToEmailId));
ResetPassMail.From = new MailAddress(FromEmailId, FromName);
ResetPassMail.Sender = new MailAddress(SenderEmailId, SenderName);
ResetPassMail.Subject = Subject;
ResetPassMail.IsBodyHtml = true;
ResetPassMail.Body = MailBody;
ResetPassMail.Priority = System.Net.Mail.MailPriority.High;

SmtpServer.Host = SMTPHost;
SmtpServer.Port = SMTPPort;
SmtpServer.Credentials = new NetworkCredential(CredentialEmailId, CredentialPassword);
SmtpServer.DeliveryMethod = SmtpDeliveryMethod.Network;
try
{
SmtpServer.Send(ResetPassMail);
return true;
}
catch (SmtpException smtpExe)
{
throw new Exception("Message :" + smtpExe.Message + " Details : " + smtpExe.ToString());
}

}
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900