PHPMailer character encoding issues

前端 未结 9 1053
太阳男子
太阳男子 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:09

    The simplest way and will help you with is set CharSet to UTF-8

    $mail->CharSet = "UTF-8"
    
    0 讨论(0)
  • 2020-12-07 08:12
    $mail = new PHPMailer();
    $mail->CharSet = "UTF-8";
    $mail->Encoding = "16bit";
    
    0 讨论(0)
  • 2020-12-07 08:14

    I work myself this way

      $mail->FromName = utf8_decode($_POST['name']);
    

    http://php.net/manual/en/function.utf8-decode.php

    0 讨论(0)
提交回复
热议问题