【发布时间】:2016-04-29 17:12:38
【问题描述】:
我试图在我的程序中发送验证电子邮件,当我使用 gmail 时它可以工作并发送验证电子邮件,但现在我尝试使用我自己的邮件服务器并开始引发此错误
/accounts/register/ 处的 SMTPAuthenticationError
(535, '5.7.8 错误: 身份验证失败:')
知道为什么吗?
# EMAIL SETTINGS
EMAIL_HOST = "smtp.xxxx.xxx"
EMAIL_PORT = "25"
EMAIL_HOST_USER = "no-reply@xxxxx.net"
EMAIL_HOST_PASSWORD = "xxxxxxxxxxxxxxxxxx"
# Controls whether a secure connection is used.
EMAIL_USE_TLS = True
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
【问题讨论】:
-
我在使用服务器时出现同样的错误,请问您解决了吗?
标签: django email authentication smtp gmail