丶囚笼计
2016-03-20 16:23
Fatal error: Uncaught exception 'Swift_TransportException' with message 'Failed to authenticate on SMTP server with username "89520****@qq.com" using 1 possible authenticators' in /Applications/MAMP/htdocs/Imooc_PDO/App2/swiftmailer-master/lib/classes/Swift/Transport/Esmtp/AuthHandler.php:184 Stack trace: #0 /Applications/MAMP/htdocs/Imooc_PDO/App2/swiftmailer-master/lib/classes/Swift/Transport/EsmtpTransport.php(312): Swift_Transport_Esmtp_AuthHandler->afterEhlo(Object(Swift_SmtpTransport)) #1 /Applications/MAMP/htdocs/Imooc_PDO/App2/swiftmailer-master/lib/classes/Swift/Transport/AbstractSmtpTransport.php(120): Swift_Transport_EsmtpTransport->_doHeloCommand() #2 /Applications/MAMP/htdocs/Imooc_PDO/App2/swiftmailer-master/lib/classes/Swift/Mailer.php(80): Swift_Transport_AbstractSmtpTransport->start() #3 /Applications/MAMP/htdocs/Imooc_PDO/app2/doAction.php(52): Swift_Mailer->send(Object(Swift_Message)) #4 {main} thrown in /Applications/MAMP/htdocs/Imooc_PDO/App2/swiftmailer-master/lib/classes/Swift/Transport/Esmtp/AuthHandler.php on line 184
我也碰到了这个问题。这个意思是邮件发送失败,原因是你提供的邮箱和密码不对,老师最后一节课有讲需要开启QQ邮箱的STMP哪几个功能才行。还有网上查了好像说需要用什么授权码,不能用邮箱密码。我试了试反正没成功。我最后用的网易邮箱解决的,当然,也得设置开启STMP功能,不过网易好像是默认开启的,用的还是网易的邮箱密码。
PDO—数据库抽象层
30045 学习 · 414 问题
相似问题