News for hackers. Stuff that matters.
Re:Ask HN: How to send emails without hardcoding them in sou... by mtmail on Friday August 10, 2018 @02:00PM (#17735470)
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
Re:Ask HN: How to send emails without hardcoding them in sou... by LinuxBender on Friday August 10, 2018 @01:57PM (#17735435)
Populate a template using a list of recipients, a subject, a body, which could be in a database or a file.
Re:Ask HN: How to send emails without hardcoding them in sou... by edmanet on Friday August 10, 2018 @01:48PM (#17735351)
This is where I would start: http://bfy.tw/JMKG