My doubts are as follows, in the system I develop you have the option to send direct mail from the system, such as NFe emails and files. I use the following setting to send the email.
MailMessage mensagemEmail = new MailMessage();
mensagemEmail.To.Add("[email protected]");
mensagemEmail.From = new MailAddress("[email protected]", "Nome Empresa");
mensagemEmail.Subject = Assunto;
mensagemEmail.Body = "<pre>" + Mensagem + "</pre>";
mensagemEmail.IsBodyHtml = true;
SmtpClient client = new SmtpClient();
client.Host = mail.dominio.com.br;
client.Port = 587;
client.EnableSsl = False;
//Email do dominio hostgator
//utilizo essa configuração em todos os clientes
string Usuario = "[email protected]";
string Senha = "Senha";
NetworkCredential cred = new NetworkCredential(Usuario, Senha);
client.Credentials = cred;
client.Send(mensagemEmail);
But what happens, most clients work normally but in some cases I had a problem returning this error.
Invalid HELO name (See RFC5321 4.1.1.1)
In some tests that I did to try to solve, if I put this same configuration in outlook 2010 and make that send test it solves the problem in the system too.
I need to find out what Outlook changes in the windows configuration to release the email.
Does anyone have any ideas?