Re: sendmail return-path (not 4 newbies)
| From: | Stuart Dallas | Date: | Fri, 03 May 2002 17:56:11 +0000 |
| Subject: | Re: sendmail return-path (not 4 newbies) | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-95944@lists.php.net to get a copy of this message | ||
On 3 May 2002 at 12:48, Anthony Rodriguez wrote:
> PROBLEM
>
> When a php script uses mail() and sendmail, if the e-mail address is
> not right, the e-mail is returned to the envelope sender (the hosting
> provider), NOT to the "From", "Reply-To", "Return-Path", or any
> other
> additional headers included in mail().
>
> Apparently, this problem is faced by any user who utilizes a hosting
> provider.
The envelope address can be set on a per script basis by setting the sendmail_from value
using ini_set(). Alternatively, if you are using Apache, you can set it in a .htaccess file.
--
Stuart