Solve discuz! X2.0 Message Send return error message method

Source: Internet
Author: User
Keywords discuz!

Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest cloud host technology Hall

Recently installed discuz! When you X2.0, when you detect message settings, you are always prompted for "message Send return error message". (pictured).

My environment is configured to:

Linux Virtual Host

Server Software: Apache

Server database: MySQL

  

  

Baidu, found that many owners have met this problem, the Internet is a uniform reprint of a DISCUZ official tutorial, but can not solve the "message sent back error message" problem.

After a few days non-stop Baidu and Google, summed up the errors of most of the server as a virtual host, because some hosts to prevent spam, shielding 25 ports (25 port for SMTP, Simple Mail transmits Kyoto, the easy Message Transfer Protocol). This causes the message to send back an error message.

Solution One

Discuz Forum Hixinqin students to provide the method: Find the Fsockopen function in the program, replaced by: Pfsockopen, you can solve all the problems, the difference between the two functions is pfsockopen to keep keep-alive, Makes it impossible for a hacker to connect several attacks. The path of the program file that is known to use the Fsockopen function (plus p before fsockopen, that is, Fsockopen modified to Pfsockopen):

Discuz X2 installation prompts do not support Fsockopen:

The/include/install_var.php file

$func _items = Array (' mysql_connect ', ' fsockopen ', ' gethostbyname ', ' file_get_contents ', ' xml_parser_create ');

To be replaced by:

$func _items = Array (' mysql_connect ', ' pfsockopen ', ' gethostbyname ', ' file_get_contents ', ' xml_parser_create ');

can be installed normally.

X2 mail-related files containing fsockopen:

\source\function\function_mail.php Mail Related

\uc_client\lib\sendmail.inc.php Mail Related

\uc_server\lib\sendmail.inc.php Mail Related

PS: If you are in the background mail test prompts error, do not worry, test mailbox will still have mail received!

Related Tutorials Address: www.discuz.net/thread-2478985-1-1.html

Workaround Two

Log in to the Web site virtual space background (for example, the following Bluehost virtual hosts):

Enter Bluehost's Cpanel,cpanel-->email accounts-->add a New Email account

2, specify a new email account, such as account name sfz99, and select a need to associate with the domain name such as sfz99.com, establish a mailbox account: Admin@sfz99.com.

3. Create password (it is recommended to use password generator to prevent password too simple).

  

Select the first item "Send via PHP function SendMail" in the Discuz mail delivery mode. (depending on your server selection)

  

  

Hope that these two methods, can help not solve this kind of trouble webmaster child shoes, in fact, the biggest problem is the host 25 port is prohibited, if the above can not be resolved, suggest a new host space. Article source: http://www.sfz99.com A5 starting, thank you.

Related Article

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.