Re: mail return-path problem
| From: | Eric Butera | Date: | Sat, 12 Nov 2005 05:54:47 +0000 |
| Subject: | Re: mail return-path problem | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-225668@lists.php.net to get a copy of this message | ||
On 11/8/05, Richard Heyes <richard.heyes@libraryhouse.net> wrote:
>
> Eric Butera wrote:
> > I was just curious if there was a way to set the return path of an email
> > dynamically. I've looked around and all I could find was a Zend tutorial
> > running sendmail from the command line, which I don't want to do. :)
> >
> > I tried setting "Return-Path:" in the mail() headers, but that didn't
> seem
> > to make a difference. If anybody knows anything about this and could
> point
> > me in the right direction, I'd appreciate it.
> >
> > Thanks!
> >
>
> Use the fifth argument to the mail() function and the -f option for
> sendmail:
>
> mail('...', '...', '...', null, '-freturn@example.com')
>
> --
> Richard Heyes
> http://www.phpguru.org
The -f was the trick. Thank you for all the input guys. =)