How do I send emails with Arabic content via PHP's mail function?

后端 未结 4 1709
伪装坚强ぢ
伪装坚强ぢ 2020-11-30 13:11

I\'m having a challenge with sending emails with arabic content using PHP\'s mail function. Let\'s say I have this simple arabic string:

بريد

I\'ve tried sev

4条回答
  •  夕颜
    夕颜 (楼主)
    2020-11-30 13:48

    Try this

    $headers .= 'From: =?UTF-8?B?'.base64_encode($from). "\r\n";
    

提交回复
热议问题