Re: return path of mail function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



sub@xxxxxxxxxxxxxxx wrote:
Safe mode is indeed off and sendmail_from has "no value". I've modified the
code as below:

$return="test@xxxxxxxx";
$orig_sendmail_from = ini_get('sendmail_from');
ini_set('sendmail_from', $return);

$headers =  "From: Test <test@xxxxxxxx>\r\n" .
   "Reply-To: Test <test@xxxxxxxx>\r\n";

$sub="Test sub";
$msg="Test msg";
$to="sub@xxxxxxxxxxxxxxx";

mail($to, $sub, $msg, $headers);

What headers do you get when you do this?

--
Postgresql & php tutorials
http://www.designmagick.com/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux