+13 votes
684 views
in Programming by (11.7k points)

I faced with some problems including special characters in mail subject. How can I fix sperial character error in PHPMailer?

1 Answer

+14 votes
by (26.3k points)

Use

$mail->CharSet = 'UTF-8';

or 

 

$subject = '=?UTF-8?B?' . base64_encode($subject) . '?=';
Ask a Question
Welcome to WikiTechSolutions where you can ask questions and receive answers from other members of the community.

You can ask a question without registration.

Categories

...