Menu

Our product sends six kinds of email, and the only one with a link to our own site is the one nobody pays for
📰

Our product sends six kinds of email, and the only one with a link to our own site is the one nobody pays for

DEV Community: typescript·Daniel Pertu·about 14 hours ago
#nVqEDPrW
#devtotypescript#devto#dev#email#notifio
Reading 0:00
15s threshold

Notifio is a desktop app that watches rental search pages and emails you when a new listing appears. The app is local, so almost everything the product says to a user arrives as email, and every template lives in one folder on the server:

server/src/lib/emails/ activation.ts 52 lines alert.ts 240 lines free-access.ts 107 lines

Enter fullscreen mode

Exit fullscreen mode

I have measured these templates before, from two different angles: Gmail clips a message at 102KB, and our alert email runs out of room between 136 and 208 listings was about size, and three of the five text colours in our alert emails fail WCAG AA was about contrast. Four kinds of email, one endpoint was about the dispatch route behind them.

This one is about links, which I had never counted.

The census

$ grep -c '<a href' src/lib/emails/*.ts src/lib/emails/activation.ts:0 src/lib/emails/alert.ts:2 src/lib/emails/free-access.ts:1

Enter fullscreen mode

Exit fullscreen mode

Three anchor tags in 399 lines of email template.…

Continue reading — create a free account

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