RE: [PHP] usage of mail()
| From: | Ignacio Vazquez-Abrams | Date: | Mon, 27 Nov 2000 22:47:18 +0000 |
| Subject: | RE: [PHP] usage of mail() | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-27485@lists.php.net to get a copy of this message | ||
On Mon, 27 Nov 2000 mailing_list@gmx.at wrote:
> >>If the emailaddress does not exist, I want a message in my personal
> >>mailbox - is this possible?
> >>and if not - is it possible by using the linux sendmail-command?
> >
> > I believe you can just set the "Return-Path" header within your email.
> >
> > See example 3 at
> > http://www.php.net/manual/function.mail.php
>
> I now tried:
>
> mail($sendto,$subject,$message,"From: myaddress@mysite.com\nReply-To:
> myaddress@mysite.com\nReturn-Path: myaddress@mysite.com\n");
>
> ... but I never got a "can't deliver-report" ...
> (and I sent it to xxx@xxx.xxx :-) )
>
> thanks
> witty
>
IIRC, locally sendmail doesn't check the headers, only the envelope.
--
Ignacio Vazquez-Abrams <ignacio@openservices.net>