note 51406 deleted from ref.mail by didou
| From: | didou@php.net | Date: | Sun, 23 Apr 2006 22:28:30 +0000 |
| Subject: | note 51406 deleted from ref.mail by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-109196@lists.php.net to get a copy of this message | ||
Note Submitter: pkringle at planetnet dot org
----
You want to setup the Return-Path on a email sent, without modifing the php.ini or httpd.conf file.
You can do it in your php code.
EXAMPLE:
mail("$to", "$subject", "$message", "From: $from\nX-Mailer: PHP/
. $phpversion()", "-f $from");
END EXAMPLE:
Notice the "-f" at the end of the function. This will set the return-path.