SendMail component not installed or started
1. Reinstall the SendMail component, I use the CentOS, install with the following command
Yum Install SendMail
2. Restart the PHP-FPM process using the following command
/ETC/INIT.D/PHP-FPM restart
3. Detect whether the SendMail is running normally
/etc/init.d/sendmail status
If the display is running running can be.
The command that might be used
/etc/init.d/sendmail start (Start SendMail)
/etc/init.d/sendmail Stop (Close sendmail)
/etc/init.d/sendmail Restart (reboot sendmail)
4. Configure php.ini, fill in the SendMail absolute path
Open edit php.ini with command
Vi/usr/local/php/etc/php.ini
Input? Sendmail_path find positioning (or manually jump to find Sendmail_path), you will find that the default is the following code
; Sendmail_path =
Press I into the editor, change this line to
Sendmail_path =/usr/sbin/sendmail-t-I.
Press ESC to exit edit, enter: Wq Save exit
5. Restart the PHP-FPM process
/ETC/INIT.D/PHP-FPM restart