SMTPAuthenticationError:(535,“身份验证失败:帐户已禁用”)Python应用

时间:2018-10-02 03:12:19

标签: python django heroku sendgrid

我的Python应用程序使用Heroku上的sendgird帐户在用户忘记密码或通过链接登录时向用户发送电子邮件。 问题是sendgrid帐户,使用1-2个月后使用get disable,我必须更改为新帐户。

完整日志:

  

错误:回溯(最近一次通话最近):
  send_mail_with_perm中的文件“ user_profile / services / profile.py”,第595行,
  msg.send(fail_silently = fail_silently)
  发送中的文件“ /app/.heroku/python/lib/python2.7/site-packages/django/core/mail/message.py”,第292行,
  返回self.get_connection(fail_silently).send_messages([self])
  send_messages中的文件“ /app/.heroku/python/lib/python2.7/site-packages/email_log/backends.py”,第27行
  num_sent + = message.send()
  发送中的文件“ /app/.heroku/python/lib/python2.7/site-packages/django/core/mail/message.py”,第292行,
  返回self.get_connection(fail_silently).send_messages([self])
  send_messages中第100行的文件“ /app/.heroku/python/lib/python2.7/site-packages/django/core/mail/backends/smtp.py”
  new_conn_created = self.open()
  在打开的文件“ /app/.heroku/python/lib/python2.7/site-packages/django/core/mail/backends/smtp.py”中的第67行
  self.connection.login(self.username,self.password)
  登录中的文件“ /app/.heroku/python/lib/python2.7/smtplib.py”,第623行
  引发SMTPAuthenticationError(代码,分别)
  SMTPAuthenticationError:(535,“身份验证失败:帐户已禁用”)

有人遇到同样的问题吗?

1 个答案:

答案 0 :(得分:1)

您可能有一个trial subscription,如果您没有注册实际帐户,则该帐户将被取消(一个级别是免费的,但可能仍然需要您提供付款信息)。要么就是您屡次违反他们的服务条款/用户协议。

相关问题