note 77210 added to ref.mail
| From: | timo dot witte at kwick dot de | Date: | Mon, 20 Aug 2007 12:57:29 +0000 |
| Subject: | note 77210 added to ref.mail | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-129639@lists.php.net to get a copy of this message | ||
if you wonder how to encode an subject in UTF-8 do it like this:
<?php
mail("timo.witte@kwick.de", "=?UTF-8?B?".base64_encode("also öhm
äähh ühh puh ja die Sonderzeichen")."?=", "asbdasdasd bla blabla",
$headers);
?>
=UTF-8?B?[Base64 encoded Subject]?=
The B stands for Base64 you could use Q instead of B and encode your UTF-8 string in 7 bit ASCII but
base64 is simpler i think.
why encoding?
because you are not allowed to use 8-bit ASCII in mailheaders only 7-bit ASCII is allowed and pure
utf-8 uses 8-bit ASCII characters.
----
Server IP: 217.13.201.10
Probable Submitter: 213.23.71.194
----
Manual Page -- http://www.php.net/manual/en/ref.mail.php
Edit -- https://master.php.net/note/edit/77210
Del: integrated -- https://master.php.net/note/delete/77210/integrated
Del: useless -- https://master.php.net/note/delete/77210/useless
Del: bad code -- https://master.php.net/note/delete/77210/bad+code
Del: spam -- https://master.php.net/note/delete/77210/spam
Del: non-english -- https://master.php.net/note/delete/77210/non-english
Del: in docs -- https://master.php.net/note/delete/77210/in+docs
Del: other reasons-- https://master.php.net/note/delete/77210
Reject -- https://master.php.net/note/reject/77210
Search -- https://master.php.net/manage/user-notes.php