It looks like that the encoding cannot be changed via the provided properties (BodyEncoding and HeaderEncoding). No matter what encoding I set the encoding is always the same and it's definitely not UTF8.
Here's my code:
MimeMailer smtp = new MimeMailer(smtpHost, smtpPort, smtpUser, smtpPassword, SslMode.Ssl, AuthenticationType.Base64); smtp.EnableImplicitSsl = true; MimeMailMessage message = new MimeMailMessage(); message.BodyEncoding = Encoding.UTF8; message.SubjectEncoding = Encoding.UTF8; message.From = new MimeMailAddress(smtpUser); message.To.Add(new MimeMailAddress(recipient)); message.Subject = "ÍÉÁŰŐÚÓÜÖíéáűőúüó"; message.Body = "ÍÉÁŰŐÚÓÜÖíéáűőúüó"; message.IsBodyHtml = true; smtp.SendMail(message);
And the output in the email is:
subject: ????????????????? body: ÍÉÁ??ÚÓÜÖíéá??úüó
Thanks for watching it!
You seem to have CSS turned off. Please don't fill out this field.
Anonymous
View and moderate all "Bug Report" comments posted by this user
Mark all as spam, and block user from posting to "Discussion"
It looks like that the encoding cannot be changed via the provided properties (BodyEncoding and HeaderEncoding).
No matter what encoding I set the encoding is always the same and it's definitely not UTF8.
Here's my code:
And the output in the email is:
subject: ?????????????????
body: ÍÉÁ??ÚÓÜÖíéá??úüó
Thanks for watching it!