Urdu Language Support for sending email to hotmail and yahoo with phpmailer

190 Views Asked by At

I am using phpmailer to send my auto-generated text/mail to users. body of the mail contains Urdu (Unicode), which is shown by google perfectly, but hotmail and yahoo mail shows the mail as shown in the following snapshot:

enter image description here

is this a bug or i am missing any Unicode supporting parameter for sending my emails-

1

There are 1 best solutions below

1
On BEST ANSWER

You need to ensure that your code tells PHPMailer to use UTF-8:

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

Note that the property name CharSet is case-sensitive, so ensure it matches exactly. You must also ensure that your content in also UTF-8 format.