如何使用Amazon SNS发送HTML邮件? [英] How to send HTML mails using Amazon SNS?

查看:196
本文介绍了如何使用Amazon SNS发送HTML邮件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用Amazon SNS发送HTML邮件?或者我需要使用SES是什么? 我经历了文件,但它似乎没有办法使用Amazon SNS发送HTML邮件。

How to send HTML mails using Amazon SNS? or do I need to use SES for that? I went through the documentation but it seems there is no way to send HTML mails using Amazon SNS.

推荐答案

您可以使用Amazon SES为发送的电子邮件和SNS为触发发送过程。

You can use Amazon SES to send the emails and SNS to trigger the sending process.

假设你有一个应用程序 http://myapp.com 的端点 / API /发送,电子邮件负责发送HTML电子邮件低谷亚马逊SES的照顾。

Suppose you have an app http://myapp.com where the endpoint /api/send-email takes care of sending HTML email trough Amazon SES.

您设置一个Amazon SNS主题的订阅端点 / API /发送,电子邮件来接收通知,当有事情发生,通知将触发电子邮件。

You set up an Amazon SNS topic, subscribe the endpoint /api/send-email to receive notifications and when something happens, the notification will trigger the email.

您可以设置 / API /发送,电子邮件采取从存储在通知中的JSON数据参数,并使用该信息发送电子邮件。

You can setup /api/send-email to take parameters from the JSON data stored in the notification and send the email using that information.

这篇关于如何使用Amazon SNS发送HTML邮件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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