RE: [PHP] php mail()
| From: | John W. Holmes | Date: | Mon, 14 Oct 2002 19:46:52 +0000 |
| Subject: | RE: [PHP] php mail() | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-119937@lists.php.net to get a copy of this message | ||
> Hey do you guys know how to correct this problem with sending email?
>
> A custumer uses mail() to send the email and it isn't deliverable. So
the
> message bounces. But since the local sendmail sent the email it thus
> bounces
> to root's mailbox instead of say the replyto address. Anyone know how
to
> correct it so that it sends the bounces to the person sending it? This
is
> on
> a virtual host machine with hundreds of domains.
The users probably need to set a FROM header in their mail
$header = "FROM: email@domain.com";
mail($to,$subject,$body,$header);
Then the bounce should go to that address.
---John Holmes...