Re: return path of mail function

From: Date: Mon, 03 Apr 2006 21:41:05 +0000
Subject: Re: return path of mail function
References: 1 2 3 4 5  Groups: php.general 
Request: Send a blank email to php-general+get-233158@lists.php.net to get a copy of this message
On Sun, Apr 02, 2006 at 10:34:48PM -0700, sub@drewpydraws.com wrote: > The same as before: > > Return-path: <nobody@amsterdam.servershost.net> > Envelope-to: sub@drewpydraws.com > Delivery-date: Mon, 03 Apr 2006 00:35:34 -0500 > Received: from nobody by amsterdam.servershost.net with local (Exim 4.52) ^^^^ Exim probably isn't allowing it for security reasons. > ... > the > > > code as below: > > > > > > $return="test@test.com"; > > > $orig_sendmail_from = ini_get('sendmail_from'); > > > ini_set('sendmail_from', $return); You are better off using the 5th paramater to mail() instead.. mail($to, $sub, $msg, $headers, "-f $return"); The return-path shouldn't nor will be allowed in your standard $headers var. Curt. -- cat .signature: No such file or directory

« previous php.general (#233158) next »