How to send HTML mails using Amazon SNS?

ⅰ亾dé卋堺 提交于 2019-12-06 21:13:26

问题


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.


回答1:


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

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

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.

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



来源:https://stackoverflow.com/questions/19201837/how-to-send-html-mails-using-amazon-sns

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!