How to set sending e-mail address?

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

 



I'm trying to figure out how to set the sending address when sending e-mail from PHP, but it doesn't seem like I'm having much success..

When I look in the mail queue, I always see 'wwwrun@xxxxxxxxxxxxxx' as the origin (the web server user).

In my sending routine I set headers like this:
$hdrs = array(
'From'    => $MAILFROM,
'Subject' => iconv(strtoupper(CHARSET), "ISO-8859-1", $subject),
'Reply-To' => $MAILFROM,
'Date' => date("r"),
'Return-Path' => 'POSTMASTER@xxxxxxxxxx'
);

Oh, the mail sent doesn't use the Return-Path I set, it's still set as wwwrun@xxxxxxxxxxxxxxx
What else can I do, and what have I missed?

Anders

--
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