+8 votes
571 views
asked in Programming by (10.6k points)

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


1 Answer

+9 votes
answered by (9.7k 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

...