On Sun, Mar 07, 2004 at 09:51:28AM +0600, Raditha Dissanayake wrote: > It's an often overlooked fact that you can pass additional headers in > the fourth parameter. I do belive you should use \n and not \r\n > then your code will look like > > mail("[EMAIL PROTECTED]", "object", $message, > "From: [EMAIL PROTECTED] ". > "Reply-To:[EMAIL PROTECTED]". > "Return-Path: [EMAIL PROTECTED]);
As mentioned in another post, the Return-Path header can and usually is overwritten by sendmail when it does the actual sending. In addition to a previous suggestion, one way to reliably set that header is to use phpmailer (http://phpmailer.sourceforge.net/) which has the option of using an smtp server rather than sendmail directly. joel -- [ joel boonstra | gospelcom.net ] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php