Re: Setting Return-Path header for mail() on Linux
| From: | Manuel Lemos | Date: | Sun, 15 Jun 2003 11:59:54 +0000 |
| Subject: | Re: Setting Return-Path header for mail() on Linux | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-151568@lists.php.net to get a copy of this message | ||
Hello,
On 06/13/2003 09:09 AM, Tom Woody wrote:
Is it possible to change the Return-Path header in PHP on linux? I have seen all the posts about setting it in the php.ini with the -f switch to sendmail. But I need to set it based on the person logged into the page? Right now the Return-Path is set to a default that gets sent to me (the administrator). I have a group of about 20 users who log into the webpage, and send email messages. If any of the messages bounce, those users don't know about it until I sift through the postmaster mailbox and let them know (that is unless the remote mail server is nice and send the bounce to the From: or Reply-To:). Changing the Return-Path would solve this for everyone. Any thoughts ideas, or am i just out of luck?Yes, under Linux you just use the -f switch. You may want to take a look at this class that comes with an abstraction of the Return-Path header: http://www.phpclasses.org/mimemessage -- Regards, Manuel Lemos Free ready to use OOP components written in PHP http://www.phpclasses.org/