0

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-

Andrei Suvorkov
  • 5,559
  • 5
  • 22
  • 48
Abdul Rahman
  • 1,669
  • 4
  • 24
  • 39

1 Answers1

1

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.

Synchro
  • 35,538
  • 15
  • 81
  • 104