note 11855 added to function.mail.php
| From: | j at a-1 dot nl | Date: | Fri, 09 Mar 2001 22:02:10 +0000 |
| Subject: | note 11855 added to function.mail.php | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-12133@lists.php.net to get a copy of this message | ||
A simple solution to the return-path problem:
- In php.ini:
sendmail_path=sendmail -ti $PHP_SENDMAILPARAMS
- Restart your server.
- Edit your php script:
putenv("PHP_SENDMAILPARAMS=-f{$USER}@{$DOMAIN}");
To suppress the X-authentication header, add the user apache is running as to the sendmail trusted
users. (RedHat users should use linuxconf to add user 'nobody' to 'Trusted
users' in 'Basic Sendmail configuration')
- Joost Ruijsch -
http://www.php.net/manual/en/function.mail.php