PHP E-Mail Encoding?

后端 未结 7 1548
甜味超标
甜味超标 2020-11-29 08:26

I am having some trouble with foreign characters when sending an e-mail. Could someone advise me on what to do? I suspect the problem could be one of three things.

7条回答
  •  北荒
    北荒 (楼主)
    2020-11-29 08:35

    In addition to what was said earlier, it is not mandatory to send the mail in HTML to be able to use UTF-8, you may also format it as simple text in the headers:

    'Content-Type: text/plain;charset=utf-8'
    

提交回复
热议问题