PHPMailer cannot verify that the email server passes

Source: Internet
Author: User
PHPMailer could not verify that the mail server changed the mail server through the company, it was originally using U-MAIL. Now we use Microsoft's exchange. As a result, the original php script fails to connect to the new email server. the prompt is Couldnotauthenticate. How can I diagnose the problem? Note: The script only modifies the connected $ m PHPMailer.
The company changed the mail server, was originally using U-MAIL. Now we use Microsoft's exchange.

As a result, the original php script fails to connect to the new email server, and the prompt is: cocould not authenticate.

How can I diagnose the problem?

Note: The script only modifies the connected $ mail-> Host. Other user names and passwords remain unchanged. In addition, you can use outlook for connection verification. the IP address, user name, and password of the new mailbox can be used.

------ Solution --------------------
Require SSL?
------ Solution --------------------
Http://www.jiucool.com/phpmailer-php-email/

Compare whether your php has installed openssl, account and password, and whether the ip address and port of the smtp server are ssl.

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.