django - 无法向 django 中的其他用户电子邮件帐户发送电子邮件
问题描述
我以前使用 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 等消息已发送
解决方案
推荐阅读
- javascript - 如何修复 React Js 中类组件“返回部分”中的“if 语句”?
- django - 'ManyToManyDescriptor' 对象没有属性 'all'
- nlp - 使用 Bert 和余弦相似度来识别相似文档
- php - 在codeigniter上查看pdf文件
- c# - assign two classes to a generic constraint at runtime
- reactjs - 错误:找不到模块 '\react-scripts\bin\react-scripts.js'
- spring - @Cacheable 无法更新
- javascript - 是否有不根据时区更改的 Date.now() 的 JS 替代方案?
- asp.net - 使用 HttpClient 的天蓝色 DevOps 基本身份验证(失败)
- javascript - 限制虚拟键盘输入到输入字段 maxLength JavaScript