无法将电子邮件发送到django中的其他用户电子邮件帐户

时间:2019-04-30 08:27:04

标签: django sendgrid django-email

我以前使用gmail smtp发送邮件**(工作正常)**,但现在我在sendgrid中创建了新帐户,并在Django项目中使用免费计划创建了即时通讯,这是我关于发送网格的完整设置

EMAIL_HOST = 'smtp.sendgrid.net'
EMAIL_HOST_USER = 'apikey' # this is exactly the value 'apikey'
EMAIL_HOST_PASSWORD = 'SG.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' # this is API key
EMAIL_PORT = 587
EMAIL_USE_TLS = True
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'

是否需要其他设置??我正在使用rest auth lib http://127.0.0.1:8000/rest-auth/password/reset/

测试电子邮件

显示类似success": "Password reset e-mail has been sent."的消息

但是收件人没有收到任何邮件,但是在sendgrid仪表板中它显示了9或10等已发送的味精

0 个答案:

没有答案