I'm trying to send an email in French, with French letters (i.e. characters) that have accents. There are 2 different French versions, one a plain text message body, the other an HTML message body. The HTML email version comes through just fine, accents and all. However, the plain text version comes through with the characters with accents entirely missing.
How do I specify encoding for the plain text body so that the characters with accents will appear correctly in the plain text email version?
In order to set specified encoding for the plain text body, please use the Charset property of the PlainTextBody. For example:
TextPlainBody frPlainTextBody = new TextPlainBody(); frPlainTextBody.Charset = "utf-8";//set the charset. frPlainTextBody.Content = "French franais français :\n" ;
Aspose.Network.Mail.TextHtmlBody frHtmlTextBody = new TextHtmlBody(); frHtmlTextBody.Charset = "utf-8";//set the charset frHtmlTextBody.Content = "French français Html Body:\n";
What's the version of Aspose.Network are you using? It looks like you are using the old version of it. I'am afraid that we cannot provide such feature for the olde verions.