note 35126 added to ref.mail

From: Date: Wed, 20 Aug 2003 16:34:54 +0000
Subject: note 35126 added to ref.mail
Groups: php.notes 
Request: Send a blank email to php-notes+get-54768@lists.php.net to get a copy of this message
When using sendmail (or qmail I guess) and the mail() function, I found that I need to add the sendmail_path as: sendmail_path = "sendmail -t -i &" in PHP.INI note the trailing "&", this lets PHP try and send your mail asynchronously, which isn't required if the site your trying to contact is valid and is up, but if it's valid and down (i.e. no name server available currently) PHP will "hang" on the attempt for some period of time (minutes, or hours, I didn't have the patience to wait) ---- Manual Page -- http://www.php.net/manual/en/ref.mail.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+35126 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+35126&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+35126&report=yes

« previous php.notes (#54768) next »