note 105211 added to function.mail
| From: | krzysiek dot 333 at gmail dot com | Date: | Wed, 03 Aug 2011 06:24:40 +0000 |
| Subject: | note 105211 added to function.mail | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-182129@lists.php.net to get a copy of this message | ||
Sending messages with polish special characters:
<?php
function plmail($mail, $sub, $mes){
$headers = "From: ExRobot <robot@example.com>\r\n";
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/plain; charset=utf-8\r\n";
$headers .="Content-Transfer-Encoding: 8bit";
$mes=htmlspecialchars_decode($mes,ENT_QUOTES);//optional - I use encoding to POST data
mail($mail, "=?utf-8?B?".base64_encode($sub)."?=", $mes, $headers);
}
?>
Page must be in utf-8 encoding.
----
Server IP: 69.147.83.197
Probable Submitter: 83.15.249.210
----
Manual Page -- http://www.php.net/manual/en/function.mail.php
Edit -- https://master.php.net/note/edit/105211
Del: integrated -- https://master.php.net/note/delete/105211/integrated
Del: useless -- https://master.php.net/note/delete/105211/useless
Del: bad code -- https://master.php.net/note/delete/105211/bad+code
Del: spam -- https://master.php.net/note/delete/105211/spam
Del: non-english -- https://master.php.net/note/delete/105211/non-english
Del: in docs -- https://master.php.net/note/delete/105211/in+docs
Del: other reasons-- https://master.php.net/note/delete/105211
Reject -- https://master.php.net/note/reject/105211
Search -- https://master.php.net/manage/user-notes.php