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 ";