Hi, Paul is right, you can't change the Return-Path header. On a windows server you could use the 'sendmail_from' setting in php.ini, but that doesn't work on Linux/Unix. Also, the -f 5th argument of the mail() function does not function with safe_mode on in php. It also generates a X-Authentication-error in the emailheader (for me, at least) and I am told it can lead to dangerous security problems.
I gave up some time ago to try and fix this problem. When my emails don't reach the target because visitors don't fill in their correct emailaddress, I won't receive any delivery errors. I used Reply-To, Error-To and whatever more, but I couldn't fix it. Maybe something can be added to a later release of PHP to fix this? I for one would be extremely happy with that. -- [Win2000 | Apache/1.3.23] [PHP/4.2.3 | MySQL/3.23.53] Ivo Fokkema PHP & MySQL programmer Leiden University Medical Centre Netherlands "Brian S. Drexler" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Ok, I want to specify who the mail is coming from by using the sendmail_path > option in the PHP.ini. I've added the [EMAIL PROTECTED] to it, but I want > to be able to dynmaically change [EMAIL PROTECTED] to [EMAIL PROTECTED] or > whatever else. Anyone have any ideas how I can do this? I'm pulling the > e-mail I'd like to change it to from a MySQL database but can I rewrite the > php.ini file on the fly or am I stuck. Any help is greatly appreciated. > Thanks! > > Brian > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php