SMTPAuthenticationError: (535, 'Authentication failed: account disabled') Python app
我的Python应用程序使用Heroku上的sendgird帐户为用户忘记密码或通过链接登录时发送电子邮件。
问题是sendgrid帐户,使用get disable 1-2个月后,我必须更改为新帐户。
完整日志:
Error: Traceback (most recent call last):
File"user_profile/services/profile.py", line 595, in send_mail_with_perm
msg.send(fail_silently=fail_silently)
File"/app/.heroku/python/lib/python2.7/site-packages/django/core/mail/message.py", line 292, in send
return self.get_connection(fail_silently).send_messages([self])
File"/app/.heroku/python/lib/python2.7/site-packages/email_log/backends.py", line 27, in send_messages
num_sent += message.send()
File"/app/.heroku/python/lib/python2.7/site-packages/django/core/mail/message.py", line 292, in send
return self.get_connection(fail_silently).send_messages([self])
File"/app/.heroku/python/lib/python2.7/site-packages/django/core/mail/backends/smtp.py", line 100, in send_messages
new_conn_created = self.open()
File"/app/.heroku/python/lib/python2.7/site-packages/django/core/mail/backends/smtp.py", line 67, in open
self.connection.login(self.username, self.password)
File"/app/.heroku/python/lib/python2.7/smtplib.py", line 623, in login
raise SMTPAuthenticationError(code, resp)
SMTPAuthenticationError: (535, 'Authentication failed: account disabled')
谁有同样的问题?
您可能有试用订阅,如果您没有注册实际帐户,这将被取消(一层是免费的,但可能要求您提供付款信息)。 无论是那个还是你一再违反他们的服务条款/用户协议。