使用AWS SES/SNS接收电子邮件 [英] Recieving emails with AWS SES/SNS

查看:278
本文介绍了使用AWS SES/SNS接收电子邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在正在构建的Rails应用程序中的应用程序内消息中创建电子邮件.我正在使用SES接收入站电子邮件,然后将它们通过SNS发送到我的Rails应用程序中,在此我要对其进行处理.

I am trying to a create email to in app message in a rails app that I am building. I am using SES to receive inbound emails and then send them to my rails app with SNS where I am trying to process them.

我可以在生产日志中看到SNS击中了我的端点,但SNS没有随请求发送任何json.我什至不知道如何开始调试它.

I can see in my production logs that SNS is hitting my endpoint but SNS is not sending any json with the request. I have no idea how to even begin debugging this.

这些是SNS发送到POST "/email_processor"

Processing by EmailsController#recieved as HTML

 <ActionController::Parameters {"controller"=>"emails", "action"=>"recieved"} permitted: false>

推荐答案

我想出了一个解决方案,但我不知道它为什么起作用.我有SES触发器和SNS触发器,该lambda会将电子邮件发送到我的端点.我不知道为什么SNS不向其端点发送任何带有其请求的json. SNS确实将完整的json有效负载发送到lambda.我对这种解决方法不满意,但是可以解决.

I figured out a solution for this but I have no idea why it works. I have SES trigger and SNS which triggers lambda which sends the email to my endpoint. I have no idea why SNS is not sending any json with its request to my endpoint. SNS does send the full json payload to lambda. I'm not happy with this work around but it works.

这篇关于使用AWS SES/SNS接收电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆