--- 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