amazon-web-services - 通过 Amazon SES/SNS 检索退回电子邮件的消息详细信息

标签 amazon-web-services

我正在使用 Amazon SES 发送电子邮件。我还设置了 Amazon SNS,以便在电子邮件因任何原因退回时接收通知。这工作正常。

在我收到的退回通知中,我可以看到日期、发件人和收件人。但是邮件的主题没有列出。 See example

我确实看到了 messageId在那里。是否有用于检索消息详细信息的 API?我还查看了 Amazon SQS,但我不确定这是否可行。

最佳答案

您无法通过 messageID 检索邮件详细信息消息发送后,因为没有API call available这样做。在发送电子邮件(通过 API 或 SMTP)时,您需要存储有关消息的相关详细信息以及 SES 的成功响应中给出的消息 ID。 Developer Guide涵盖了检索收件人的类似情况,其中提到您需要

store a mapping between [your own] identifier and the Amazon SES message ID that Amazon SES passes back to you when it accepts the email.



亚马逊人在 SES support thread 中的回答(尽管从 2012 年开始)还强调了您在发送消息时需要记录消息 ID。

if you record the message ID, you can use the message ID to identify the [e-mail message] that bounced or complained and then update the mailing list.

关于amazon-web-services - 通过 Amazon SES/SNS 检索退回电子邮件的消息详细信息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34879970/

相关文章:

amazon-web-services - Lambda 在一天中的特定时间开始处理 SQS 队列中的消息的最佳方式

amazon-web-services - 创建仅限 CloudFormation 的 AWS 策略

amazon-web-services - 有人可以给我一个自定义 CloudWatch 事件模式的示例吗

java - 如何通过非硬编码 key 使用 Redshift COPY

javascript - AWS Javascript 开发工具包 : Greengrass createFunctionDefinition

spring - 通过curl路由上传到Amazon S3

amazon-web-services - AWS Personalize 使用 500 万个项目(750k 项目限制)

amazon-web-services - Amazon AWS Filezilla 传输权限被拒绝

postgresql - Lambda + RDS Postgres 不工作

javascript - 使用 AWS Lambda 自动创建静态站点客户端页面