UTF-8 mail

Jul 2, 2010 at 1:24 PM
Edited Jul 2, 2010 at 1:28 PM
Hi, I try to send an email encoded in utf-8 using this code :

SmtpMessage mg = new SmtpMessage();
mg.HeaderEncoding = Encoding.UTF8;
mg.ContentEncoding = Encoding.UTF8;
mg.From = from;
mg.To.Add(new Higuchi.Net.Mail.MailAddress(to));
mg.Cc.Add(new Higuchi.Net.Mail.MailAddress(from)); // Add also the source address to the mail
mg.Date = DateTime.Now.ToUniversalTime();
mg["Mime-Version"] = "1.0";
mg["Content-type"] = "text/html";
mg.Subject = subject;
mg.BodyText = "éééééé";

SmtpClient cl = new SmtpClient();
cl.HostName = "localhost";
cl.ServerName = _smtp_host;
cl.Port = _smtp_port;
cl.AuthenticateMode = SmtpAuthenticateMode.Plain;
cl.Ssl = false;
SendMailResult rs = cl.SendMail(mg);

return rs.SendSuccessful;

I receive ?????? instead of éééééé.

The mail headers seems to be correct :

Content-Transfer-Encoding: 7bit
Content-Disposition: inline
MIME-Version: 1.0
Content-Type: text/html;
charset="utf-8"

Any idea ?

Thanks in advance

BEst regards
Coordinator
Jul 11, 2010 at 6:37 PM

Try to change your Pop3Client ResponseEncoding property.
It maybe resolve your problem.