note 17311 deleted from function.mb-send-mail by jimw

From: Date: Tue, 18 Dec 2001 23:15:17 +0000
Subject: note 17311 deleted from function.mb-send-mail by jimw
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-23306@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

« previous php.notes (#23306) next »