RE: [PHP] mail function in PHP's
| From: | o dot cook at etoncollege dot org dot uk | Date: | Sat, 25 Nov 2000 11:14:59 +0000 |
| Subject: | RE: [PHP] mail function in PHP's | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-27129@lists.php.net to get a copy of this message | ||
From the manual:
mail("nobody@aol.com", "the subject", $message,
"From: webmaster@$SERVER_NAME\nReply-To:
webmaster@$SERVER_NAME\nX-Mailer: PHP/" . phpversion());
You can set the from and reply to headers, as the snippet suggest. Then if
the mail can't be delivered; failure reports are sent to the from address.
Ollie
> -----Original Message-----
> From: Francisco Aguilera [mailto:FranciscoAguilera@canalmail.com]
> Sent: 25 November 2000 11:14
> To: php-general@lists.php.net
> Subject: [PHP] mail function in PHP's
>
>
>
> Hi,
>
> I'm newby in programming with PHP.
>
> I've been programming PHP in an UNIX environment with
> Apache as Web Server, I've been trying to send e-mail with de
> mail function, and it works fine if the sender exist.
>
> The program catch a From Header, to Header, Subject and
> messages. When the e-mail is delivered to the Receipt, in the
> From Header appears the e-mail we type as From Header, but
> when the e-mail is return due to errors, it is delivered to
> the owner that runs Apache.
>
> Is there someone that know how I can masquerade the
> Apache's owner? and if there is an error delivering the
> e-mail, the error must be sent to the Sender.
>
> Thank's a lot.
>
> Best Regards
>