开发者

Encoding Plain text email

开发者 https://www.devze.com 2022-12-16 18:13 出处:网络
What encoding should I use if I want to send plain text emails? I\'m using PHPMailer. What setting do I need to change when sending email only as plain text, it\'s for a domain registration form.开发

What encoding should I use if I want to send plain text emails? I'm using PHPMailer.

What setting do I need to change when sending email only as plain text, it's for a domain registration form.开发者_StackOverflow社区


Usually, you would select an encoding that matches that of your web site (or, more specifically, the form you're using to fill in the E-Mail with).

UTF-8 is certainly the encoding of choice, especially if you expect international customers.

If your form encoding and desired E-Mail encoding differ, you can convert the form data using iconv().

0

精彩评论

暂无评论...
验证码 换一张
取 消