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().
精彩评论