Solution of garbled problem in. NET Mail to Hotmail

Source: Internet
Author: User
Tags character set mail
Solve | problems in. NET we often use MailMessage and smtpmail to cooperate with the letter, as long as the SMTP server is configured well, generally not a big problem

But recently I help www.danceshopper.com to do multilingual upgrade, found as long as the traditional mail, to Hotmail in the subject is garbled, content is garbled, but with Foxmail or Outlook received the client, the problem does not exist , similar problems in the gmail[has been resolved]163 and other places appear, plagued me for several days, after repeated tests, I got a [or found] the correct issue of non-garbled message scheme.

In fact, it is very simple that your email must be encoded correctly, where the code needs to note that there are 2 places

1 charset such as HTML mail must include <meta http-equiv= "Content-type content=" text/html; charset=gb2312 ">

2 bodyencoding, please get the language of your letter, do not use UTF8

Why emphasize cannot use UTF8, my analysis is such as Hotmail this old mailserver may develop for a long time, cannot have the very good support to the current HTML evolution, especially what UTF8 Unicode this kind of thing, But Hotmail is an indispensable mailbox for many people, use it to send and receive their daily letters [I am not, too slow], so the character set these things must be forced to make, many long language friends because of access to powerful utf8, often like me to ignore this problem, Here it is necessary to remind everyone, hehe, need to return to the original



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.