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
I shipped a productivity SaaS in 30 days as a solo dev — here's what AI actually changed (and what it didn't) User Avatar 259 comments Never hire an SEO Agency for your Saas Startup User Avatar 107 comments A simple way to keep AI automations from making bad decisions User Avatar 71 comments 85% of visitors leave our pricing page without buying. sharing our raw funnel data User Avatar 43 comments Are indie makers actually bad customers? User Avatar 40 comments We automated our business vetting with OpenClaw User Avatar 38 comments