note 39572 added to function.mail

From: Date: Mon, 02 Feb 2004 23:28:06 +0000
Subject: note 39572 added to function.mail
Groups: php.notes 
Request: Send a blank email to php-notes+get-64569@lists.php.net to get a copy of this message
I've found that php (or maybe courier) likes to add the $to variables to the headers, so that if I compose a message: To: "user" <user@domain.com> and invoke mail with a $to value of "user@domain.com" the email I receive reads: To: user@domain.com, "user" <user@domain.com> To get around this, I've found that you can pass $to in as NULL, and php will parse the To, Cc, etc. out of the message itself. ---- Manual Page -- http://www.php.net/manual/en/function.mail.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+39572 Delete -- http://master.php.net/manage/user-notes.php?action=delete+39572&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+39572&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#64569) next »