Solve the garbled problem of sending mail to Hotmail in. net

Source: Internet
Author: User
In. net, we often use mailmessage and smtpmail to send emails. As long as the SMTP server is configured, there will be no major problems.
However, when I recently upgraded www.danceshopper.com to multiple languages, I found that as long as it is a traditional email, the subject in Hotmail is garbled and the content is garbled, but when I received the client using Foxmail or outlook, the problem does not exist. Similar problems may occur in Gmail [fixed] 163 and other places. It has plagued me for several days. After repeated summary tests, I got a [or found] Correct Solution for sending non-garbled emails.
In fact, it is very simple, that is, the code of your email must be correct. Here there are two places to note in the code.
1. The charset in an email, such as HTML, must include <meta http-equiv = "Content-Type" content = "text/html; charset = gb2312">
2 bodyencoding. Please obtain the language of your letter. You cannot use utf8
Why can't we emphasize that utf8 is not used? My analysis is that Hotmail, an old MailServer, may have been developed for a long time and cannot provide good support for the current HTML evolution, especially for utf8 Unicode, however, Hotmail is an indispensable mailbox for many people. It is used to send and receive their daily emails [I don't need it, it's too slow], so the character set must be mandatory, many of my friends who use multiple languages often ignore this problem because they have been exposed to the powerful utf8 feature. It is necessary to remind everyone that they need to restore 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.