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.