How we built email notifications for Book Reviews and Blog subscribers using Gmail and Python
Our book review site has 26+ detailed book reviews with audio narration, but readers had no way to know when new reviews were published. Same for the blogโvisitors would have to manually check for new content.
We leveraged the GOG (Google Workspace CLI) tool that was already configured. This means:
Active subscribers receiving notifications for both book reviews and blog posts. Confirmation emails sent automatically.
Subscriber Form โ Python Backend โ GOG Gmail CLI โ Subscriber Inbox
โ
JSON Storage (subscribers.json)
โ
Telegram Alert to Admin
We store subscribers in a simple JSON file:
{
"email": "subscriber@example.com",
"content_type": "book",
"subscribed_at": "2026-04-15T12:00:00Z"
}
When someone subscribes, they receive a welcome email that includes:
Telegram alert when someone new subscribes:
TELEGRAM_BOT_TOKEN and TELEGRAM_CHAT_ID env varsWhen publishing a new review or article, run:
# Book reviews
python3 notify_subscribers.py \
--title "Bitcoin Standard" \
--author "Saifedean Ammous" \
--id "bitcoin-standard" \
--description "Analysis..."
# Blog posts
python3 notify_blog_subscribers.py \
--title "New Tutorial" \
--id "article-slug" \
--description "Summary..."
Every notification email includes an unsubscribe optionโsubscribers can reply with "unsubscribe" or click a link.
Get notified when new book reviews or blog posts are published.
This system was built in an afternoon and handles everything without third-party email marketing services or monthly fees.
๐ฌ Comments