note 108328 added to function.mail
| From: | yarik dot bohatsky at gmail dot com | Date: | Tue, 17 Apr 2012 15:02:50 +0000 |
| Subject: | note 108328 added to function.mail | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-187208@lists.php.net to get a copy of this message | ||
If you want to send UTF-8 HTML letter you need to mention charset twice:
1) In message header:
<?php
$headers .= 'Content-type: text/html; charset=utf-8' . "\r\n";
?>
2) In HTML header:
<?php
$message = '
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Fillon soutient à fond le retour d\'un Grand Prix de France</title>
</head>
<body>
<p>Le Premier ministre François Fillon, passionné d\'automobile et pilote Ã
ses heures, a apporté un soutien appuyé au retour d\'un Grand Prix de France au
calendrier 2013 de la Formule 1, en faisant un passage-éclair vendredi sur le circuit Paul Ricard
dans le Var.</p>
</body>
</html>
';
In this case Outlook will also "understand" that message is encoded using UTF-8.
----
Server IP: 69.147.83.197
Probable Submitter: 213.159.240.112
----
Manual Page -- http://www.php.net/manual/en/function.mail.php
Edit -- https://master.php.net/note/edit/108328
Del: integrated -- https://master.php.net/note/delete/108328/integrated
Del: useless -- https://master.php.net/note/delete/108328/useless
Del: bad code -- https://master.php.net/note/delete/108328/bad+code
Del: spam -- https://master.php.net/note/delete/108328/spam
Del: non-english -- https://master.php.net/note/delete/108328/non-english
Del: in docs -- https://master.php.net/note/delete/108328/in+docs
Del: other reasons-- https://master.php.net/note/delete/108328
Reject -- https://master.php.net/note/reject/108328
Search -- https://master.php.net/manage/user-notes.php