【发布时间】:2022-06-29 16:04:03
【问题描述】:
我正在尝试将 AWS SES 添加到我的项目中。我在哪里列出了不同的地区
MessageRejected at /
An error occurred (MessageRejected) when calling the SendRawEmail operation: Email address is not verified. The following identities failed the check in region US-EAST-1: email@hotmail.com
在 AWS 验证的身份中列出:
email@hotmail.com Email address Verified
我对该用户的策略具有 SES 权限。
Attached from group
AmazonSESFullAccess
AWS managed policy from group AmazonSESFullAccess
也是我的 settings.py
EMAIL_BACKEND = 'django_ses.SESBackend'
EMAIL_HOST = 'email-smtp.us-west-2.amazonaws.com'
EMAIL_PORT = 465
EMAIL_USE_SSL = True
EMAIL_HOST_USER = ''
EMAIL_HOST_PASSWORD = ''
在哪里使用
from django.core.mail import send_mail
from django.conf import settings
send_mail(email_subject, email_message,'email@hotmail.com',['email@hotmail.com'])
【问题讨论】:
标签: django amazon-web-services amazon-ses