First look at the WordPress hint:
Here, directly, the root cause of this problem is the failure to install or start the SendMail component.
The next thing is OK, we install the SendMail component directly.
Reinstall the SendMail component, I use the CentOS and install the following command:
Yum Install SendMail
The following illustration will appear:
Press Y-Health directly, after successfully installed the following figure:
It's not over yet, because we also need to configure the SendMail component. Fill in the SendMail absolute path.
Locate the following file directly:/usr/local/php/etc/php.ini
Then find the following in the file:
; Sendmail_path =
Modify it to:
Sendmail_path =/usr/sbin/sendmail-t-I.
Next, we start SendMail: The command is as follows:
/etc/init.d/sendmail start (Start SendMail)
In addition, there are several related commands:
/etc/init.d/sendmail Stop (Close sendmail)
/etc/init.d/sendmail Restart (reboot sendmail)
Next, we detect if SendMail is working:
/etc/init.d/sendmail status
Normal operation, will display running, the following figure:
function is implemented, but with the above test code test, found that a successful e-mail message is very slow, modified/etc/hosts, unmodified
127.0.0.1 localhost.localdomain localhost
Modified into
127.0.0.1 localhost.localdomain localhost host name
The command to view the host name of this computer is: hostname
Restart SendMail after completing the modification
Service SendMail Restart
To this, the SendMail component configuration was successful.