PHPMailer character encoding issues

前端 未结 9 1058
太阳男子
太阳男子 2020-12-07 07:38

I try to use PHPMailer to send registration, activation. etc mail to users:

require(\"class.phpmailer.php\");
$mail -> charSet = \"UTF-8\";
$mail = new PH         


        
9条回答
  •  隐瞒了意图╮
    2020-12-07 08:02

    Sorry for being late on the party. Depending on your server configuration, You may be required to specify character strictly with lowercase letters utf-8, otherwise it will be ignored. Try this if you end up here searching for solutions and none of answers above helps:

    $mail->CharSet = "UTF-8";
    

    should be replaced with:

    $mail->CharSet = "utf-8";
    

提交回复
热议问题