The problem of sending garbled emails using phpmail

Source: Internet
Author: User
Please kindly advise me if I use phpmail to send emails with garbled characters. the encoding format is set to UTF-8, but the client uses the foxmail client to open the emails, the results are garbled. Is there any solution?


Reply to discussion (solution)

Not much, but I really hope someone can help me. thank you!

What encoding have you set? let's take a look.

1. var $ CharSet = "UTF-8" in phpmailer. inc. php ";
2. sent content $ content =" Test Content"

All you know is to modify these !!

Php file. use the editor to set it to UTF-8 encoding and try again.

In fact, the main problem is that the foxmail client displays the Mail format in Western Europe by default, as long as the encoding format is changed to UTF-8, the display can be normal, but I don't understand why I cannot directly display UTF-8 at the beginning, and I can see emails sent from other websites that are accepted in UTF-8 format. why? So I was wondering where I had not set or did not do any further !! Thank you for your help !!

Is there a solution ?? Whow

The encoding of your php file is UTF-8.

Yes, I am using the smarty template. The template is service.html, on the page Some php pages also call $ smarty-> display('service.html ');

No one has encountered this problem?

Locate the cause and solve it ....

How can I solve this problem?

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.