note 88302 added to function.mail
| From: | orjtor at osu1 dot php dot net | Date: | Mon, 19 Jan 2009 20:17:22 +0000 |
| Subject: | note 88302 added to function.mail | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-149479@lists.php.net to get a copy of this message | ||
This is my solution of problems with Windows Mail on Vista. I got some of the headers in the mail
body as plain text. When I removed '\r' and left just '\n' at the end of the two
last lines of header it worked. This error didn't show up in my yahoo mail.
<?php
$body = "<html>\n";
$body .= "<body style=\"font-family:Verdana, Verdana, Geneva, sans-serif;
font-size:12px; color:#666666;\">\n";
$body = $message;
$body .= "</body>\n";
$body .= "</html>\n";
$headers = "From: My site<noreply@my_site.com>\r\n";
$headers .= "Reply-To: info@my_site.com\r\n";
$headers .= "Return-Path: info@my_site.com\r\n";
$headers .= "X-Mailer: Drupal\n";
$headers .= 'MIME-Version: 1.0' . "\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
return mail($recipient, $subject, $message, $headers);
?>
----
Server IP: 80.67.2.2
Probable Submitter: 62.181.209.228
----
Manual Page -- http://www.php.net/manual/en/function.mail.php
Edit -- https://master.php.net/note/edit/88302
Del: integrated -- https://master.php.net/note/delete/88302/integrated
Del: useless -- https://master.php.net/note/delete/88302/useless
Del: bad code -- https://master.php.net/note/delete/88302/bad+code
Del: spam -- https://master.php.net/note/delete/88302/spam
Del: non-english -- https://master.php.net/note/delete/88302/non-english
Del: in docs -- https://master.php.net/note/delete/88302/in+docs
Del: other reasons-- https://master.php.net/note/delete/88302
Reject -- https://master.php.net/note/reject/88302
Search -- https://master.php.net/manage/user-notes.php