note 52325 added to ref.mail
| From: | AndrewW at osu1 dot php dot net | Date: | Wed, 27 Apr 2005 22:19:39 +0000 |
| Subject: | note 52325 added to ref.mail | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-88663@lists.php.net to get a copy of this message | ||
I spent weeks trying to work out why PHP couldnt send mail through Exim (called locally) when for
all other purposes Exim worked fine. Here, after hours of work is the answer and I hope it saves
someone else some time:
PHP by default calls sendmail/exim/whatever with the options -t & -i
-i is causing Exim to sit there waiting for more input, not detecting the end of the message. You
need to tell it not to use -i by manually specifying the arguments you DO want on sendmail_path like
this:
sendmail_path = /path/to/exim -t
----
Manual Page -- http://www.php.net/manual/en/ref.mail.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+52325
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+52325&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+52325&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+52325&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+52325&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+52325&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+52325&report=yes
Search -- http://master.php.net/manage/user-notes.php