How to Poll Transactional Email Status in Node.js Using Cron and Events API
Developers can track transactional email delivery status in Node.js by polling a provider's events API via a cron worker, without relying on webhooks. The approach involves recording an immutable send attempt with an internal ID, provider message ID, template revision, and a digest of the rendered body for auditability. A bounded polling strategy — checking once per minute for up to ten minutes — is recommended, after which observation stops regardless of delivery outcome. Provider status labels like 'delivered' or 'bounced' reflect transport state only and should never influence security logic such as password-reset token expiry, which must remain an independent policy. This polling method is not suitable for scenarios requiring sub-minute reaction times or high provider-side event volumes, where a webhook-based push approach is more appropriate.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in