I'm using PHPMailer to send email from PHP. My email body contains HTML format and Chinese characters.
Chinese Characters are not shown correctly, it's changed to strange characters. I take the characters from database. It's shown perfectly if I view through web browser.
What variable of PHPMailer I have to initialize to solve this?
Any helps would be appreciated. Thank you.
You probably use wrong encoding for HTML body. Some important properties are:
$mail = new PHPMailer();
$mail->IsHTML(true);
$mail->MsgHTML($your_html_body);
$mail->CharSet="UTF-8"; // <-- Put right encoding here
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With