Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Ask HN: How to send emails without hardcoding them in source code? | Better HN
Ask HN: How to send emails without hardcoding them in source code?
1 points · by
anandnair
· 8y ago · 3 comments
Comments
[–]
mtmail
8y ago
The large transactional email sending services (sendgrid, mailgun, postmark, ...) support email templates, e.g.
https://sendgrid.com/docs/User_Guide/Transactional_Templates...
and some have online editors. Then in your code you call an API method with placeholders.
https://postmarkapp.com/developer/api/templates-api
[–]
LinuxBender
8y ago
Populate a template using a list of recipients, a subject, a body, which could be in a database or a file.
[–]
edmanet
8y ago
This is where I would start:
http://bfy.tw/JMKG