note 54022 added to function.mail

From: Date: Tue, 21 Jun 2005 10:02:52 +0000
Subject: note 54022 added to function.mail
Groups: php.notes 
Request: Send a blank email to php-notes+get-90732@lists.php.net to get a copy of this message
In the posting "gregBOGUS at BOGUSlorriman dot com 6th april 2005" I claimed that redirecting an email, via the mail() function, to a different email address was as simple as copying over the unmodified headers of the originally recieved email (which would, of course, include the original "To:" field). However it seems that this works for a Xampp install (http://www.apachefriends.org/en/xampp.html) with Mercury as the mail agent, but doesn't work on my webhost without first removing the old "To:" field, and perhaps other header modifications. Therefore it looks like it would be safest to strip any header lines that shouldn't be there. <sigh> http://www.lorriman.com ---- Manual Page -- http://www.php.net/manual/en/function.mail.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+54022 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+54022&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+54022&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+54022&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+54022&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+54022&report=yes&reason=non-english Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+54022&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+54022&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#90732) next »