note 21270 added to function.mail

From: Date: Mon, 06 May 2002 01:21:21 +0000
Subject: note 21270 added to function.mail
Groups: php.notes 
Request: Send a blank email to php-notes+get-30241@lists.php.net to get a copy of this message
I'm using qmail, and therefore I've used the sugestion of using qmail-inject, which works fine! But for all of you that only want a simple, working form to receive feedback, just use the following: <?php mail ("you@here", "$subject", "$message", "From: <$sender>\n". "Reply-To: <$sender>\n"); ?> It works fine, and it doesn't have that sticky problem with the 'From' field. ENJOY! (= -- http://www.php.net/manual/en/function.mail.php http://master.php.net/manage/user-notes.php?action=edit+21270 http://master.php.net/manage/user-notes.php?action=delete+21270 http://master.php.net/manage/user-notes.php?action=reject+21270

« previous php.notes (#30241) next »