2
1 Comment

How to do dynamic email newsletter

I'd like to send daily newsletters due to some content that I can offer which changes daily. But I don't want to be doing manual newsletter creation via tools like Mailchimp.
Is there a way or tool where I can insert data into placeholders via API e.g. with json format, able to previous visually anytime and offers scheduling?

Appreciate any advice!

on April 22, 2021
  1. 2

    Basically, it's possible but tedious.

    For my personal blog, I decided to put together a mailing list to see how many of my readers were interested enough to see project previews and some of my source material. And then I went through the same process of "but I don't want to do that."

    It's basically a rickety prototype and definitely not a polished solution, but I released some scripts that take a Markdown file for the month, add some boilerplate "here's what I've been reading" sections, pushes it out to Mailchimp, and opens the browser to review and finally send it manually, since--like I said--the code is still a bit clumsy, so I don't trust it to be put on a timer.

    It might be a decent starting point for you, at least. I work in Markdown, so that I can keep everything in version control and easily convert between formats, so you might want to tweak that. But the final output is HTML (since that's what Mailchimp eats), so previews should be easy enough. (If it ever gets more attention, I might consider cleaning it up and turning it into a service, though that brings in all sorts of considerations about choosing data sources.)