7
9 Comments

Sending automatic daily email with JAMstack

Hi all,

I have a JSON file with a quote for each day of the week. I want to create an automatic daily newsletter.

I have zero experience with JS Frameworks and static websites (only Django). I wanted to use this project as a vehicle to learn JS Frameworks (Vue.JS) specifically.

I have been googling, but couldn't find a viable solution. Did anyone of you have an experience with something like that? Any feedback is welcome. Thanks a ton in advance.

P.S. I will be sending a transactional email via Postmark, as opposed to full marketing email like ConvertKit.

posted to Icon for group Developers
Developers
on February 4, 2020
  1. 2

    These guys are awesome and have a bunch of examples. Can learn a lot from this one which checks a website on a daily basis and then auto-emails through postmark. https://serverless.com/examples/aws-node-scheduled-weather/

    1. 1

      This is great. Thanks so much for sharing that. Added a few posts to my Pocket.

  2. 1

    You can also shortcut it and use Code Webhooks and the mail sending with Zapier. https://zapier.com/help/create/code-webhooks

    1. 1

      I've been meaning to start using Zapier. I'm not sure why, nut I find it frightening. Thanks for your suggestion.

  3. 1

    This doesn't really involve Vue but you could cobble something together with https://github.com/outstack/enveloper . It's a tool I've made.

    Might not be what you're looking for but if you can use SMTP with postmark, it could work.

    1. 1

      I love open-source projects like that. I will certainly check it out. Since I need somehting quick I will have to use something else now, but will hopefully get to experiment with your solution. Thanks!

      1. 1

        Hope you find something suitable. If you ever do experiment, feel free to ask any questions!

  4. 1

    One possible way to do this is to create a lambda/cloud function which takes a json file from some storage or database and using the Postmark api sends the email. The function can be invoked by a cloud scheduler/cloud cron service every day. So basically you have to build a lightweight backend functionality. Firebase, AWS, Netlify etc all have the necessary services

    1. 1

      Awesome. Thanks for the input. I'll look into that. I've been meaning to explore lambda more in-depth.

Trending on Indie Hackers
Why Indie Founders Fail: The Uncomfortable Truths Beyond "Build in Public" User Avatar 119 comments I built a tool that turns CSV exports into shareable dashboards User Avatar 94 comments $0 to $10K MRR in 12 Months: 3 Things That Actually Moved the Needle for My Design Agency User Avatar 74 comments The “Open → Do → Close” rule changed how I build tools User Avatar 65 comments I got tired of "opaque" flight pricing →built anonymous group demand →1,000+ users User Avatar 45 comments A tweet about my AI dev tool hit 250K views. I didn't even have a product yet. User Avatar 42 comments