PHPMailer设置utf8 PHPMailer字符集CharSet
2022-11-29 leiting (2276阅读)
标签 PHP
$mail = new \PHPMailer\PHPMailer(); $mail->CharSet = \PHPMailer\PHPMailer::CHARSET_UTF8; /** * PHPMailer的字符集: * const CHARSET_ASCII = 'us-ascii'; * const CHARSET_ISO88591 = 'iso-8859-1'; * const CHARSET_UTF8 = 'utf-8'; */
最新评论:
最新评论: