Return Adress
| From: | Jean-Arthur Silve | Date: | Thu, 09 Aug 2001 09:23:19 +0000 |
| Subject: | Return Adress | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-61964@lists.php.net to get a copy of this message | ||
Hi !
I ve got a problem with the mail function :
My http server (Apache) is running as user "web" and php is compiled as a module.
When I send a mail with the mail function and, for example, the recipient does not exists, the return message is sent to web@mydomain.xxx
I would like the error messages are sent to another email adress.
I tried with the mail header "Return-path: anotheraddress@mydomain.xxx" but the error messages keep going to web@mydomain.xxx
My code is :
$head="From: ".$EMAILADMIN."\nReturn-Path: anotheraddress@mydomain.xxx\n";
mail($to,$sub,$msg,$head);
Is there a way to force the error messages to go to another email adress ?
Another header ?
If it's sendmail that change the return address, is there a way to prevent this ?
Thanks !
jean-arthur
---------------------------------------------------------------
EuroVox
4, place Félix Eboue
75583 Paris Cedex 12
Tel : 01 44 67 05 05
Fax : 01 44 67 05 19
Web : http://www.eurovox.fr
----------------------------------------------------------------