Exception & #39; phpmailerException & #39; Solution

Source: Internet
Author: User

Error display

Exception 'phpmailerexception' with message' The following From address failed: support@phpxz.com 'in/home/www/thinkphp/Vendor/PHPMailer. class. php: 710 Stack trace: #0/home/www/thinkphp/Vendor/PHPMailer. class. php (576): PHPMailer-> SmtpSend ('date: Sat, 29 S... ',' -- bda-6eca3e61d8... ') #1/home/www/gameweb/Lib/Action/TestAction. class. php (102): PHPMailer-> Send () #2/home/www/thinkphp/Lib/Think/Core/App. class. php (305): TestAction-> testmail2 () #3/home/www/thinkphp/Lib/Think/Core/App. class. php (329): App: exec (Array) #4/home/www/default. php (36): App: run () #5 {main} thinkphp combined with phpmail to send an email. The QA test yesterday found that the email cannot be sent, but only some SMTP Code was changed, the previous SMTP can be sent. You can use phpmail to test the code and set the new SMTP to send normally, some code that calls phpmail $ mail-> IsSMTP (); $ mail-> Username = "service01@phpxz.com "; $ mail-> AddReplyTo ("support@phpxz.com", "name"); $ mail-> From = "support@phpxz.com"; $ mail-> FromName = "support@phpxz.com "; code that can be sent normally after modification $ mail-> IsSMTP (); $ mail-> Username = "service01@phpxz.com"; $ mail-> AddReplyTo ("support@phpxz.com", "name "); $ mail-> From = "service01@phpxz.com"; $ mail-> FromName = "support@phpxz.com ";

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.