PHPmailer failed to send emails online!

Source: Internet
Author: User
PHPmailer failed to send emails online! Error message:
SMTP Error: cocould not connect to SMTP host. Mailer Error (9475@qq.com) SMTP Error: cocould not connect to SMTP host.
An error occurs when the local test is uploaded to the server normally.
When I put the functions in the class
Public function IsSMTP ()
{
$ This-> Mailer = 'smtp '; // change it to $ this-> Mailer = 'smtp'; then you can send the email with the same title and be treated as spam.
}

How can this problem be solved ??



Reply to discussion (solution)

Does CSDN have laruence...

Change the phpmailer class. stmp. php file:

$ This-> smtp_conn = @ fsockopen ($ host, // the host of the server
$ Port, // the port to use
$ Errno, // error number if any
$ Errstr, // error message if any
$ Tval); // give up after? Secs
Change
$ This-> smtp_conn = @ stream_socket_client ($ host. ':'. $ port, // the host of the server
$ Errno, // error number if any
$ Errstr, // error message if any
$ Tval); // give up after? Secs

It seems useless upstairs.

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.