Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

When I send an email, it is garbage text, or funny charaters. How do I change that?

0
Posted

When I send an email, it is garbage text, or funny charaters. How do I change that?

0

‘Funny’ or strange characters come from the incorrect character set being set. By default, aspNetEmail uses the us-ascii character set by default, in which, all characters have an ASCII value less than 128. If a character is sent to the mail reader, with a value higher than 127, the mail reader will split the character into multiple characters. Thus, the EmailMessage.CharSet property must be properly set to match the characters being sent in the email. Because some mail gateways need all characters to be less than 128, aspNetEmail can transparently code your text. This is achieved by setting EmailMessage.ContentTransferEncoding = MailEncoding.QuotedPrintable.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123