+1 vote

I would like to send some text like in the attachment in the body of an email. The text contains, since it is in German, some special characters (umlauts) as ö, ä, ü.

If I put the text into the Text property of the MailBuilder these characters are replaced by some rubbish like letters.

I assume this is related to the "Content-Transfer-Encoding" settings of the email. This value is "quoted-printable" if the email is sent from Mail.dll but "8bit" if I send an email with a normal email program. But I have no idea where to change this.

I should be grateful if you could give advice in this matter.

by

1 Answer

0 votes
 
Best answer

these characters are replaced by some rubbish like letters

Those characters are not rubbish. This is correct way of doing this.

It is the Quoted-Printable encoding: http://en.wikipedia.org/wiki/Quoted-printable.

This is one of the most important and core standards in email exchange. All email clients are required to know what quoted-printable is, all email clients I know can handle it.

Mail.dll behaves correctly escaping those national characters, however you can use a different Content-Transfer-Encoding if you want (not recommended).

After you created an email using MailBuilder.Create, you can use IMail.TextData.ContentTransferEncoding to set a different encoding value (e.g. MimeEncoding.Bit8, MimeEncoding.Base64).

by (301k points)
...