我做了这样的事情 来让我的网络应用程序通过 gmail 的 SMTP 发送邮件。我在本地尝试过,它奏效了。上传到服务器(位于另一个国家/地区)后,我收到此错误:
authentication failure [SMTP: Invalid response code received from server (code: 534, response: 5.7.9 Please log in with your web browser and then try again. Learn more at 5.7.9 https://support.google.com/mail/bin/answer.py?answer=78754 5.7.9 {WEBLOGINREQUIRED} fl2sm1579003pab.23 - gsmtp)]
有没有办法忽略这个?