I am looking to send emails to users showing all of the new posts the people they follow had in the last week. I have the site looking as I want, is there a way to embed the html from a website into an email using an API?
Some examples of this are when Facebook sends you an email with all of the recent posts your friends have had, or when Asana sends each user an email with their outstanding tasks.
Anyone have a good idea on how to tackle this?
I have tried using mailchimp and a few competitors to see if I could just pass them the posts for each user but after talking to their support it doesn’t seem possible
2
Answers
You could use EmailJS in order to do this, which is a service providing you an API to send eMails based on templates you can create using their UI. The bad side is that it adds
Sent by EmailJS
at the end of the mail if remember correctly.Or you can build your own API with Express on NodeJS (or anyother langage: PHP, Python..) and use a library like nodemailer.
Hope it helps 🙂 Good luck !
You should use
https://rapidapi.com/sujoyk211/api/mail-sender-api1/
to send emails using an API
And it is easy to use
doesn’t require any key or login
MAIL SENDER API LINK