Search The ForumSearch   RegisterRegister  LoginLogin

MailBee.NET SMTP

 AfterLogic Forum : MailBee.NET SMTP
Subject Topic: Sending RTF content in UTF8 Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
ptitzef
Newbie
Newbie


Joined: 26 August 2009
Location: Switzerland
Online Status: Offline
Posts: 6
Posted: 12 October 2009 at 1:29am | IP Logged Quote ptitzef

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 View ptitzef's Profile Search for other posts by ptitzef
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 12 October 2009 at 2:19am | IP Logged Quote Igor

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 View Igor's Profile Search for other posts by Igor
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide