Million web host using WordPress to send mail method

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.