note 46529 added to function.mail
| From: | HenningKlingbeil at osu1 dot php dot net | Date: | Thu, 14 Oct 2004 09:31:20 +0000 |
| Subject: | note 46529 added to function.mail | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-78531@lists.php.net to get a copy of this message | ||
Trivial but not yet mentioned here:
<?php
// This one will cause problems!
$headers .= "From: My Name <My.Name@mydomain.com>\r\n";
// This one will work fine!
$headers .= "From: \"My Name\" <My.Name@mydomain.com>\r\n";
?>
You should have this in mind when you are using the From-, Cc- or Bcc-header or the -f-parameter.
----
Manual Page -- http://www.php.net/manual/en/function.mail.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+46529
Delete -- http://master.php.net/manage/user-notes.php?action=delete+46529&report=yes
Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+46529&report=yes&reason=bad+code
Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+46529&report=yes&reason=spam
Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+46529&report=yes&reason=useless+example
Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+46529&report=yes&reason=contains+commercial+links
Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+46529&report=yes&reason=useless+note
Reject -- http://master.php.net/manage/user-notes.php?action=reject+46529&report=yes
Search -- http://master.php.net/manage/user-notes.php