Author |
|
ptitzef Newbie
Joined: 26 August 2009 Location: Switzerland
Online Status: Offline Posts: 6
|
Posted: 12 October 2009 at 1:29am | IP Logged
|
|
|
Hi,
I would like to send a mail containing RTF code encoding in UTF8.
I do it this way :
smtpMailer.BodyPlainText = "RTF code...";
smtpMailer.Message.Charset = "UTF8";
smtpMailer.Message.EncodeAllHeaders(Encoding.UTF8, HeaderEncodingOptions.Base64);
smtpMailer.Message.MailTransferEncodingPlain = MailTransferEncoding.QuotedPrintable;
unfortunatly... when i receive the mail, the body content appears with the RTF code...
What is the best way to send UTF8 mail...
Or, is there a way to send mail with the subject encoded in UTF8 and the body in ANSI.
Thanks,
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 12 October 2009 at 2:19am | IP Logged
|
|
|
The problem itself is not connected with UTF8 used, RTF code is natively used in Microsoft Outlook MSG mails but not in EML (MIME RFC822) mails. If you'd like to add RTF-formatted part to EML message, you should add it as a text bodypart with "text/rtf" content-type. Check this documentation page for details.
--
Regards,
Igor, AfterLogic Support
|
Back to Top |
|
|