note 112234 added to function.mail

From: Date: Mon, 20 May 2013 21:16:57 +0000
Subject: note 112234 added to function.mail
Groups: php.notes 
Request: Send a blank email to php-notes+get-194866@lists.php.net to get a copy of this message
mail() will not work on a naked apache/php server. You need to setup a mailing tool, like sendmail, first. Why the hell is this not explained here in the manual ? After you have installed Apache, PHP etc, also install sendmail: sudo apt-get install sendmail After that, edit the php.ini (usually in etc/php5/apache2/php.ini) and search for this line: ;sendmail_path = and change it to this: sendmail_path = "/usr/sbin/sendmail -t -i" Important: Remove the ";" in front of the line! Important too: Most tutorials post this line without the two ", but in my case this never worked without them. Reboot the entire server. ---- Server IP: 69.147.83.199 Probable Submitter: 77.64.212.68 ---- Manual Page -- http://php.net/manual/en/function.mail.php Edit -- https://master.php.net/note/edit/112234 Del: integrated -- https://master.php.net/note/delete/112234/integrated Del: useless -- https://master.php.net/note/delete/112234/useless Del: bad code -- https://master.php.net/note/delete/112234/bad+code Del: spam -- https://master.php.net/note/delete/112234/spam Del: non-english -- https://master.php.net/note/delete/112234/non-english Del: in docs -- https://master.php.net/note/delete/112234/in+docs Del: other reasons-- https://master.php.net/note/delete/112234 Reject -- https://master.php.net/note/reject/112234 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#194866) next »