Sending html content in AWS SNS(Simple Notification Service) emails notifications

三世轮回 提交于 2019-11-26 23:27:44

问题


I am using AWS SNS(Simple Notification Service) to send email notifications. In the content of the email, I have to represent data in tabular form. Currently I am using simple text string to print the table but that has formatting issues when the email is accessed through smaller screen devices like mobile and tablets, and the tabular data is just impossible to interpret. I wish to use html table instead of simple string table as html can be rendered more adequately by all size devices. So I want to represent my data in html table and want this table to be rendered by the email client, whatever it may be. Can this be done using AWS SNS?


回答1:


Amazon SNS is designed to distribute notifications. These can be received in a variety of formats, such as email, SMS, messages pushed to HTTP endpoints, mobile phone notifications and even triggering of AWS Lambda functions.

It is not designed as a fully-featured email system. It will only send text messages and appends an 'unsubscribe' footer at the bottom of the messages.

If you wish to send formatted emails, consider using Amazon Simple Email Service (SES), which improves email deliverability. Any content passed into Amazon SES is sent out to recipients, including HTML.

Amazon SNS is primarily about notification, rather than pretty content.



来源:https://stackoverflow.com/questions/32241928/sending-html-content-in-aws-snssimple-notification-service-emails-notification

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