Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 PHPMailer 发送电子邮件。除了一件事,一切都很好。如果主题包含 UTF-8 字符,则无法发送电子邮件。我已经设置了$mail->CharSet="UTF-8"。
$mail->CharSet="UTF-8"
尝试对主题进行编码以处理 utf8 字符...
$sendsubject= "=?utf-8?b?".base64_encode($subject)."?="; $mail = new PHPMailer(); $mail->Subject = $sendsubject;