Sending UTF-8 mail with mail()
| From: | Peter Lauri | Date: | Tue, 13 Jun 2006 09:09:35 +0000 |
| Subject: | Sending UTF-8 mail with mail() | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-237891@lists.php.net to get a copy of this message | ||
How can I send UTF-8 mails with the mail() function. Right now I am doing:
mail('theemail@domain.com', 'Subject', 'Message',
"From: The Sender <sender@domain.com> \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