我正在尝试使用AWS SES发送邮件。
这是我看到的错误消息:
这是我看到的错误消息:
{
"message": "Illegal address",
"code": "InvalidParameterValue",
"time": "2017-06-02T03:12:37.110Z",
"requestId": "544c6aee-4741-11e7-9cf5-a709f069aa99",
"statusCode": 400,
"retryable": false,
"retryDelay": 73.04001529701054
}
以下是AWS.SES JavaScript SDK中SendMail方法接收的请求对象。
{
"Destination": {
"BccAddresses": [],
"CcAddresses": [],
"ToAddresses": [
"success@simulator.amazonses.com"
]
},
"Message": {
"Body": {
"Html": {
"Charset": "UTF-8",
"Data": "You have been removed from Kudo mailing list for account: bob@gmail.com"
},
"Text": {
"Charset": "UTF-8",
"Data": "You have been removed from Kudo mailing list for account: bob@gmail.com"
}
},
"Subject": {
"Charset": "UTF-8",
"Data": "Kudo email removal"
}
},
"ReplyToAddresses": [],
"ReturnPath": "",
"ReturnPathArn": "",
"Source": "donotreply@kudo.io",
"SourceArn": "arn:aws:ses:us-west-2:1xxxxxxxxxx2:identity/donotreply@kudo.io"
}
bob@gmail.com已在我的帐户上得到验证(该帐户仍处于沙箱模式)。donotreply@kudo.io也已在我的帐户上得到验证。
编辑:我使用SES中的测试电子邮件选项进行了测试,它能够正常工作...但是我仍然无法使用SDK发送。
SourceArn
?另外,你说发送地址已经验证了 -- 但是你在控制台和 API 中是否一致地使用了相同的 SES 区域?这些区域是独立的,如果你在 us-west-2 中进行了验证,但将其发送到 us-east-1 端点...你看到问题了吗? - Michael - sqlbot