Menu

Post image 1
Post image 2
Post image 3
1 / 3
0

Sending new post notifications with Resend

DEV Community·Roger Rajaratnam·17 days ago
#AP6uMau4
Reading 0:00
15s threshold

Original post: Sending new post notifications with Resend Series: Part of How this blog was built — documenting every decision that shaped this site. When a new post goes live, I want subscribers to know about it. The mailing list runs through Resend — subscribers are stored in a Resend Segment, and broadcasting to them means calling the Resend Broadcasts API. The question was: how do I trigger that broadcast as part of the publish flow, without adding complexity to the build pipeline? The answer is a standalone Node.js script — scripts/notify-new-post.js — that runs manually after publishing. It reads frontmatter directly, builds an HTML email, previews it in the terminal, and asks for confirmation before sending. Diagram fallback for Dev.to. View the canonical article for the full version: https://sourcier.uk/blog/new-post-notifications-resend Why a script rather than a build hook There are a few reasons.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More