Reputation: 759
I'm using PHPMailer to send email. Everything is working fine except one thing. The email could not be send if the subject contains an UTF-8 character. I've set $mail->CharSet="UTF-8"
.
Upvotes: 1
Views: 1655
Reputation: 3877
Try to encode subject to handle utf8 characters...
$sendsubject= "=?utf-8?b?".base64_encode($subject)."?=";
$mail = new PHPMailer();
$mail->Subject = $sendsubject;
Upvotes: 4