Re: return path of mail function
| From: | sub at drewpydraws dot com | Date: | Mon, 03 Apr 2006 05:34:48 +0000 |
| Subject: | Re: return path of mail function | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-233104@lists.php.net to get a copy of this message | ||
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)
id 1FQHiw-0000Kf-E4
for sub@drewpydraws.com; Mon, 03 Apr 2006 00:35:34 -0500
To: sub@drewpydraws.com
Subject: Test sub
X-PHP-Script: www.drewpydraws.com/crap.php for ip address
From: Test <test@test.com>
Reply-To: Test <test@test.com>
Message-Id: <E1FQHiw-0000Kf-E4@amsterdam.servershost.net>
Date: Mon, 03 Apr 2006 00:35:34 -0500
X-Antivirus: AVG for E-mail 7.1.385 [268.3.4/299]
Mime-Version: 1.0
Content-Type: text/plain
~Drew
www.drewpydraws.com
----- Original Message -----
From: "Chris" <dmagick@gmail.com>
To: <sub@drewpydraws.com>
Cc: <php-general@lists.php.net>
Sent: Sunday, April 02, 2006 10:31 PM
Subject: Re: [PHP] return path of mail function
> sub@drewpydraws.com wrote:
> > Safe mode is indeed off and sendmail_from has "no value". I've modified
the
> > code as below:
> >
> > $return="test@test.com";
> > $orig_sendmail_from = ini_get('sendmail_from');
> > ini_set('sendmail_from', $return);
> >
> > $headers = "From: Test <test@test.com>\r\n" .
> > "Reply-To: Test <test@test.com>\r\n";
> >
> > $sub="Test sub";
> > $msg="Test msg";
> > $to="sub@drewpydraws.com";
> >
> > mail($to, $sub, $msg, $headers);
>
> What headers do you get when you do this?
>