Index: [Article Count Order] [Thread]

Date:  Wed, 21 May 2008 11:52:35 -0700 (PDT)
From:  Dan Kriwitsky <webhosting (at mark) yahoo.com>
Subject:  [coba-e:13020] Re: Sendmail and PHP
To:  coba-e (at mark) bluequartz.org
Message-Id:  <518771.56096.qm (at mark) web65605.mail.ac4.yahoo.com>
In-Reply-To:  <46d001c8bb65$b0c15390$967da8c0@thomasferrari>
X-Mail-Count: 13020


--- thomas <tfj-online (at mark) mail.tele.dk> wrote:
> 
> Furturemore, if you enter this line in the vhost include file for the
> site:
> php_admin_value sendmail_path "/usr/sbin/sendmail -t -i "
> 
> and use the mail() with the additional_parameters  like
> mail('nobody (at mark) example.com', 'the subject', 'the message', 'From: 
> test (at mark) domain.com,
>    '-f test (at mark) domain.com');
> 
> it sends with a return path of test (at mark) domain.com = (again ok)
> 
> Many customers/programmers/scripts do not use the additional_parameters ,
> so 
> thats bad as a lot of email gets trashed...
> 
> Is there a way for PHP to make sendemail to use the from address as the 
> Return-Path by default.
> 

A quick Google search says to put it in php.ini

sendmail_path   =   /usr/sbin/sendmail -t -f address_to (at mark) bounce.com

But, I guess that would cover all sites. So, I think your method for site
by site use is probably the best answer. Unless there's a configuration in
the script to include another php.ini on a per site basis, but that sounds
like more work than it's worth as well.

This sounds like something to put on the list for the site admin gui to
have a setting for "Set PHP mail function return path"

Here's another answer. Let us know if this works:

http://drupal.org/node/131737


-- 
Dan Kriwitsky