Phpmailer sends email headers with extra question marks and other unwanted characters

problem description

=? UTF-8?GAMEFORCE member change password Notification? GAMEFORCE member change password Notification? = messages sent with phpmailer always have these extra characters in their headers.

the environmental background of the problems and what methods you have tried

$mail- > CharSet = "utf-8", $mail- > Subject = "=? UTF-8?B?". Base64_encode ($subject). "? =";
has tried to set the character set, but the message title still has these characters.

$mail = new Mail_PHPMailer();
$mail->CharSet = "utf-8";
$mail->IsSMTP();
$mail->SMTPAuth = true;
$mail->Host = $config["hostname"];
$mail->Username = $config["username"];
$mail->Password = $config["password"];

$mail->SetFrom($config["username"]);
$mail->AddAddress($email);
$mail->Subject = "=?UTF-8?B?" . base64_encode($subject) . "?=";

$mail->MsgHTML($content);
return $mail->Send();
Mar.25,2021

I think you wrote it yourself, bro. Why do you want the title sent by encode?


I was wrong. I just killed the process and ran it again.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e3be52-4ca0e.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e3be52-4ca0e.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?