Home / Companies / Upstash / Blog / Post Details
Content Deep Dive

Scheduling emails in the user's timezone using QStash

Blog post from Upstash

Post Details
Company
Date Published
Author
Anshuman Bhardwaj
Word Count
2,180
Company Posts That Month
6
Language
English
Hacker News Points
-
Post removed?
No
Summary

A new feature was launched by Docsly to send email notifications summarizing user feedback, with the emails scheduled to be delivered in the user's timezone to enhance the user experience. The implementation allows users to choose email frequency and cancel scheduled notifications at any time, achieved through a unique solution involving scheduling cron jobs in the user's timezone without storing timezone data in the database. The solution leverages Upstash Redis and QStash's scheduling feature to manage these cron jobs effectively. A Next.js application was built to facilitate this, featuring API routes for scheduling and canceling email notifications, while ensuring that email delivery is secure and accurate through the use of verified signatures. This approach not only improves the timing of email notifications but also provides flexibility and control to the users over their notification preferences.

Trends Found in this Post

No tracked trend matches for this post yet.

Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.