Jolly Roger

Cloudflare

How I Plan to Use Cloudflare Free Email Sending for Alerts From My Publishing Pipelines

Cloudflare opened Email Sending to the Workers Free plan yesterday. The catch is you can only send to verified addresses in your own account. For most people that kills it. For me it's exactly the shape I want, because the only person I need to email is me.

Here's the problem it solves. I've got a pile of scheduled pipelines now. Small models and Groq writing posts on k4i.com, the GAO and CRS explainers on crossgov.com, syndicator.net rebuilding every 12 hours off a deploy hook. They run on GitHub Actions while I'm doing something else.

GitHub already sends an email when a workflow run fails. That's not the failure I worry about.

The one that gets me is the quiet one. The run goes green, nothing crashed, and nothing got published either. The newswire returned an empty list. Groq hit its limit and the script shrugged. A feed changed shape and the parser found zero items. Green checkmark, empty site. I find out days later when I happen to look.

The plan

One small Worker on a cron trigger, running on Cloudflare, not on my Actions minutes. Those are budgeted already and I don't want to spend them watching other jobs.

Once a day it reads the RSS feed of each site that has an automated lane and checks the date of the newest post. Every lane gets its own expected gap. The daily press release digest should never be more than a day and a bit old. The risk factor diffs are lumpier, they follow filing season, so they get a much longer leash.

If a lane is overdue, I get an email. Subject line names the site and the lane. Body says when the last post went out. That's it.

Second thing: a morning summary. One email listing what each pipeline published in the last 24 hours, titles and links. Partly a sanity check, partly because skimming the titles is the fastest way to spot the model writing nonsense. I'd rather read ten headlines over coffee than open ten sites.

Third, maybe: syndicator.net. If the rebuild hasn't picked up anything new in a full day across the whole network, something upstream is broken, and that's worth one email too.

Why this and not something else

I could do all of this with a Gmail app password in a GitHub secret. It works until it doesn't, and it's one more credential sitting somewhere I'll forget about.

This way the mail goes out from my own domain with SPF and DKIM handled, there's a delivery log in the Cloudflare dashboard, and it costs nothing. Sends to verified addresses don't even count against a quota.

The service is still in beta, so I won't trust it with anything that matters at 3am. For "hey, k4i.com went quiet on Tuesday," it's plenty.

The technical write-ups are on appcoding.com (the Worker code) and s3h.com (the IT ops side). This one's just what I'm going to do with it.