Effortlessly Schedule Emails using Node.js & Cron Jobs

แชร์
ฝัง
  • เผยแพร่เมื่อ 1 ธ.ค. 2024

ความคิดเห็น • 13

  • @deepaknegi4385
    @deepaknegi4385 ปีที่แล้ว +1

    Great job in explaining the Cron job scheduling! thank you! Please bring more videos like this 🙏

    • @koding_101
      @koding_101  ปีที่แล้ว

      Wow really... I😆😆 was very nervous, pretty complex subject to explain.

  • @geepy5708
    @geepy5708 9 หลายเดือนก่อน +3

    How do you handle server restarts? That’s where most tutorials miss it

  • @livingstonedaniel982
    @livingstonedaniel982 ปีที่แล้ว

    If you’re creating schedules based on user inputs, that means you’d have to store the user-created cron expressions in a database or maybe KV store like redis and then load them into a code module where you’ll map over them to create the cron jobs right?
    How do you make sure that the cron job map in the code module is updated when a new user creates their own cron expression and it’s saved in the Db or Kv store especially given that the mapping in the code module is not sensitive to changes in the Database without the code being reloaded?

  • @metazest
    @metazest ปีที่แล้ว +1

    Thank you so much. But how do I modify the content of the email if it changes on a daily basis? I have a project where my susbcribed users can receive daily email/update, and it contains an image (changes daily) from a Google Drive. Thanks

    • @koding_101
      @koding_101  ปีที่แล้ว

      To modify the content of the email if it changes daily, you will need to update the content of the email dynamically using a script. You can write a script that fetches the image from Google Drive and updates the email content with the new image daily.
      To achieve this, you can use the Google Drive API to access the image from your Google Drive, and then use JavaScript to dynamically update the email content with the new image. You can schedule the script to run daily using a cron job to send out the updated email automatically.
      You may also need to consider the size of the image and ensure that it does not exceed the maximum email attachment size to avoid any email delivery issues.

    • @metazest
      @metazest ปีที่แล้ว +1

      @@koding_101 Thank you so much!! More power to your TH-cam channel!

  • @Saucehero29
    @Saucehero29 5 หลายเดือนก่อน

    How can i make it run with only task scheduler in windows?

  • @Bro-cc8pw
    @Bro-cc8pw ปีที่แล้ว +1

    Now, the question is - how to make it work on production for free.. I guess it should work on normal paid hosting does it? Or maybe i need something else to make it work?

    • @koding_101
      @koding_101  ปีที่แล้ว

      It should work well on free hosting providers like Netlify or even GitHub

  • @Saucehero29
    @Saucehero29 5 หลายเดือนก่อน

    how can i run it in hostinger cron job?

  • @coldplane754
    @coldplane754 ปีที่แล้ว

    source code?