On Sun, Apr 02, 2006 at 10:34:48PM -0700, sub@xxxxxxxxxxxxxxx wrote: > The same as before: > > Return-path: <nobody@xxxxxxxxxxxxxxxxxxxxxxxxx> > Envelope-to: sub@xxxxxxxxxxxxxxx > 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@xxxxxxxx"; > > > $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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php