Peter Lauri wrote:
How can I send UTF-8 mails with the mail() function. Right now I am doing:
mail('theemail@xxxxxxxxxx', 'Subject', 'Message',
"From: The Sender <sender@xxxxxxxxxx> \n" .
"Content-Type: text/plain; charset=utf-8 \n" .
"Content-Transfer-Encoding: 7bit\n\n")
The message is being sent, but the UTF-8 specific characters are not being
presented. Is there any fix on this?
The messages etc are coming from a form. Is it possible to set the charset
for the form?
/Peter
Content-Transfer-Encoding is 7-bit, but utf-8 is 8-bit. So you need to
encode it (see notes in http://sk.php.net/quoted_printable_decode), or
leave the Content-Transfer-Encoding header.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php