Menu

Seven HTML emails in our product, the same 560 pixel table typed seven times, and the escaper defined twice
📰

Seven HTML emails in our product, the same 560 pixel table typed seven times, and the escaper defined twice

DEV Community: typescript·Daniel Pertu·3 days ago
#sE3mFlwL
#devtotypescript#devto#dev#emails#email
Reading 0:00
15s threshold

Notifio is a desktop app that watches rental search pages and emails you when a new listing appears. Email is not a side feature of it, email is the product's output. So I went and counted every message the thing can send, where each one is built, and what each one does differently from the others.

Seven HTML bodies. Here is the whole inventory.

email built in triggered by

New listings found lib/emails/alert.ts the desktop app posting a find

Reply sent / submitted lib/emails/alert.ts an auto-reply completing

Login required lib/emails/alert.ts a saved session going stale

Site blocking checks lib/emails/alert.ts the app pausing a site

Your activation code lib/emails/activation.ts a Stripe webhook after a purchase

Free licence granted lib/emails/free-access.ts a CLI script run by hand

New contact message app/api/contact/route.ts the form on notifio.app/help

Four of those live in one module, two have a module each, and the seventh is a template literal inside the API route that sends it.…

Continue reading — create a free account

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