note 17311 added to function.mb-send-mail
| From: | php-general at lists dot php dot net | Date: | Tue, 04 Dec 2001 10:45:01 +0000 |
| Subject: | note 17311 added to function.mb-send-mail | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-21594@lists.php.net to get a copy of this message | ||
Using mb_encode_mimeheader() can avoid this bug. Here is an example.
---
$to = "mail@you.com"
$email = "dont@mail-me.com";
$name = "ÉÙñ(any Japanese Characters)";
$subject = "Is mime header OK with Japanese characters?";
$message = "Hope it's OK.";
// Encode Mime Header with Options
$name = mb_encode_mimeheader($name, "ISO-2022-JP", "Q");
// Set "FROM" address
$email = $name . " <" . $email . ">";
// Send email
$result = mb_send_mail($to, $subject, $message, "From:{$email}\r\n");
---
Masaki
--
http://www.php.net/manual/en/function.mb-send-mail.php
http://master.php.net/manage/user-notes.php?action=edit+17311
http://master.php.net/manage/user-notes.php?action=delete+17311
http://master.php.net/manage/user-notes.php?action=reject+17311