使用AWS SES/SNS接收电子邮件

编程入门 行业动态 更新时间:2024-10-12 03:25:53
本文介绍了使用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接收电子邮件

本文发布于:2023-11-23 20:06:56,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1622727.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:电子邮件   AWS   SES   SNS

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!