Re: Re: Default Return-Path with mail() and qmail
| From: | Melvyn Sopacua | Date: | Sun, 08 Dec 2002 01:56:20 +0000 |
| Subject: | Re: Re: Default Return-Path with mail() and qmail | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-92203@lists.php.net to get a copy of this message | ||
At 21:06 7-12-2002, you wrote:
A more generalized fix would be to append the Return-Path to the headers string at the top of the php_mail function so that it's caught by both the sendmail block and by the TSendMail call (MAPI).Setting Return-Path is useless. It's stripped by sendmail, unless it's allowed in the cf file explicetely. Same for postfix version of sendmail. You simply need to setup your mailserver correctly and php accordingly, ie: let the webserver user be allowed to use the '-f' sendmail flag and provide this in the arguments of mail() or via ini_set. In no way, should mail() by default equal the RCPT TO user to the From: header - if I would host users, I would like to know, if they start spammin' or have buggy scripts. What ever the reason - the final control of this option should remain with the mailserver administrator, not the mail user. With kind regards, Melvyn Sopacua <?php include("not_reflecting_employers_views.txt"); ?>