Solution to php sending garbled emails: first find and open the corresponding file; then add a line of code as "$mail->CharSet = "utf-8";"; and finally save the file.
php sent email garbled code: (missing the red part)
$mail = new PHPMailer();
$mail ->Username = $youremail;
#$mail->CharSet = "utf-8";
For more related knowledge, please visit
PHP Chinese website!
The above is the detailed content of What to do if php emails send garbled characters. For more information, please follow other related articles on the PHP Chinese website!