Re: mail return-path problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxx')

--
Richard Heyes
http://www.phpguru.org

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux