How to send HTML mails using Amazon SNS

0 votes

How to send HTML emails using Amazon SNS? What alternative can I use if I can not use Amazon SNS?

Is it possible to use SES? 

Jan 8, 2019 in AWS by datageek
• 3,090 points
20,570 views

1 answer to this question.

0 votes

It's not possible to send HTML emails using just the Amazon SNS. Instead, you can use Amazon SES to send the emails and SNS to trigger the sending process. 

So, if you have an endpoint which takes care of sending email through Amazon SNS. You can create a topic, subscribe to the endpoint to receive notifications. This notification will trigger the mail.

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

answered Jan 8, 2019 by Archana
• 5,640 points

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

Can you please elaborate a little more on how to do this? I'm stuck at this for days now. Please help.

Hi,

Say you have an endpoint /api/abc. Now you need to set up an Amazon SNS topic that subscribes to the endpoint /api/abc to receive notifications and when something happens, the notification will trigger the email. You can setup endpoint /api/abc to take parameters from the JSON data stored in the notification and send the email using that information. It is like when we search something in google it will connect to the API and pass the value in the q variable.

Related Questions In AWS