Re: Mail header problem
| From: | Curt Zirzow | Date: | Wed, 07 Apr 2004 04:51:40 +0000 |
| Subject: | Re: Mail header problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-182596@lists.php.net to get a copy of this message | ||
* Thus wrote Daryl Meese (darylm@magiasoftware.com):
> Hello all,
>
> When I use the PHP mail function to send emails, with a header of
> "From:me@here.com\n"; bounced and otherwise undeliverable messages come back
> to the user "www", not the user I indicated the mail was from. Is this a
> PHP or MTA issue? Is there something I can do about it?
You want to check the fifth parameter to mail(). If you add
"-f envolpe@email.address"
If you're using sendmail (or equiv) that will set the envelope (aka
return path) for the emails, as long as safe_mode is not enabled.
Curt
--
"I used to think I was indecisive, but now I'm not so sure."