It's been a whole afternoon today.
The first is the mailbox, WAN host is not supported by the mail () function, so the default is not available, if you want to send messages, you can only use the Fsockopen () function. First go to WAN Network host management platform, enable Fsockopen.
The second step is to change the php file, find the class-smtp.php under the Wp-includes folder, open it with notepad++, pull to line No. 202,
$this->smtp_conn = @stream_socket_client (
$host. ":" . $port,
$errno,
$ERRSTR,
$timeout,
Stream_client_connect,
$socket _context
);
Replaced by
$this->smtp_conn = Fsockopen ($host, $port, $errno, $ERRSTR);
Update the file.
Then we need to use the SMTP plugin to send the message. I recommend WP SMTP, set the page, if it is a mainstream mailbox, plug-ins will have a default template. I do not know why, I personally use QQ mailbox and 163 mailbox have failed, the last use of the Million network Enterprise mailbox. Here I specifically talk about the use of million network enterprise mailbox process.
Registered million network Enterprise mailbox register a user mailbox, for example, my domain name is cielosun.com, I registered a mailbox called [email protected], and give SMTP permissions. Then in my WP SMTP plugin I fill in the method
Save the changes, and then you can test through the following tests, the success of the test, the basic is successful ~
Reproduced in this article please state from cielosun.com.
Million web host using WordPress to send mail method