0
My doubt is the following, in the system I develop has option to send email direct from the system, for example Nfe email 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);
Only what happens, in most clients works normally but in some I had problem returning this error(Invalid HELO name (See RFC5321 4.1.1.1)).
In some tests I did to try to resolve, if I put this same setting in Outlook 2010 and do that upload test of it solves the problem in the system as well.
I need to find out what outlook changes in windows configuration to free email sending.
Does anyone have any idea???