Introduction
A weekly newsletter keeps your audience engaged and drives traffic to your content. But writing, formatting, and sending a newsletter every week takes 2-4 hours. Automated newsletters reduce this to 30 minutes: curate content, let AI draft the newsletter, review, and send.
This post shows you how to automate your email newsletter.
The automation flow
RSS feed / blog posts → AI curates + drafts newsletter → You review → Send via email provider → Track opens/clicks
Step 1: Set up your email provider
Free options
- Mailchimp: Free for up to 500 contacts
- Brevo (Sendinblue): Free for 300 emails/day
- MailerLite: Free for 1,000 subscribers
Setup (Mailchimp)
- Create account at mailchimp.com
- Create an audience (your subscriber list)
- Get your API key from Account → Extras → API keys
- Create a template for your newsletter
Step 2: RSS-to-email automation
If you have a blog with an RSS feed, automate the newsletter:
Using Mailchimp RSS-to-Email
- Go to Campaigns → Create Campaign → RSS Campaign
- Enter your RSS feed URL:
https://yoursite.com/rss.xml - Set schedule: weekly (e.g., every Monday at 9 AM)
- Choose template
- Mailchimp automatically pulls new posts and sends the email
Pros: Zero manual work after setup Cons: Limited customization, only sends new posts
Using Zapier (more control)
Trigger: New item in RSS feed
↓
Action: Add to Mailchimp campaign (draft)
↓
Action: Send Slack notification "New newsletter draft ready"
↓
Manual: Review and send
Step 3: AI-drafted newsletter (advanced)
For more control, use AI to draft the newsletter:
import openai, os, feedparser, resend
client = openai.OpenAI(api_key=os.environ["OPENAI_API_KEY"])
resend.api_key = os.environ["RESEND_API_KEY"]
def fetch_latest_posts(rss_url, count=5):
feed = feedparser.parse(rss_url)
posts = []
for entry in feed.entries[:count]:
posts.append({
"title": entry.title,
"link": entry.link,
"summary": entry.summary[:200],
"published": entry.published,
})
return posts
def draft_newsletter(posts):
prompt = f"""Write a weekly newsletter for a tech blog. Include:
- A catchy subject line
- A brief intro (2-3 sentences)
- 3-5 article summaries (title + 1 sentence + link)
- A closing CTA
Articles this week:
{chr(10).join(f"- {p['title']}: {p['summary']}" for p in posts)}
Tone: friendly, informative, not salesy. Keep it under 300 words."""
response = client.chat.completions.create(
model="gpt-4o-mini",
messages=[{"role": "user", "content": prompt}],
temperature=0.7,
)
return response.choices[0].message.content
def send_newsletter(newsletter_html, subscribers):
for email in subscribers:
resend.Emails.send({
"from": "Newsletter <[email protected]>",
"to": [email],
"subject": extract_subject(newsletter_html),
"html": newsletter_html,
})
print(f"Sent to {len(subscribers)} subscribers")
# Usage
posts = fetch_latest_posts("https://techwithgalvan.in/rss.xml")
newsletter = draft_newsletter(posts)
print(newsletter)
# Review, then send
Step 4: Newsletter template
<!DOCTYPE html>
<html>
<head>
<style>
body { font-family: 'Inter', sans-serif; max-width: 600px; margin: 0 auto; padding: 20px; }
h1 { color: #1e293b; }
.article { margin: 20px 0; padding: 15px; border: 1px solid #e2e8f0; border-radius: 8px; }
.article h3 { margin: 0 0 8px; color: #3b82f6; }
.article p { color: #64748b; font-size: 14px; }
.cta { display: inline-block; padding: 12px 24px; background: #3b82f6; color: white;
text-decoration: none; border-radius: 8px; font-weight: bold; }
</style>
</head>
<body>
<h1>📰 Weekly Tech Roundup</h1>
<p>Hi [Name], here's what's new this week:</p>
<div class="article">
<h3><a href="[link]">[Article Title]</a></h3>
<p>[1-2 sentence summary]</p>
</div>
<div class="article">
<h3><a href="[link]">[Article Title]</a></h3>
<p>[1-2 sentence summary]</p>
</div>
<a href="https://yoursite.com/blog" class="cta">Read All Posts →</a>
<p style="margin-top: 30px; color: #94a3b8; font-size: 12px;">
You're receiving this because you subscribed.
<a href="[unsubscribe_link]">Unsubscribe</a>
</p>
</body>
</html>
Step 5: Automate with cron
# Generate and send newsletter every Monday at 8 AM
0 8 * * 1 cd /path/to/project && python generate_newsletter.py
Newsletter best practices
- Consistent schedule — same day, same time every week (e.g., Monday 9 AM)
- Short — 300-500 words max. People skim newsletters.
- One primary CTA — don’t give 10 links. Give one clear action.
- Personalize — use the subscriber’s name if you have it
- Mobile-friendly — 60%+ of emails are read on mobile. Test on phone.
- Always include unsubscribe — legally required (CAN-SPAM, GDPR)
Common mistakes
- Too long — 1000-word newsletters get skimmed or deleted. Keep it short.
- No value — “Here’s what we did this week” is boring. Share insights, tips, or resources.
- Inconsistent sending — skipping weeks kills engagement. Automate to be consistent.
- No segmentation — send different content to different audiences (developers vs business owners).
- Buying email lists — illegal (GDPR) and tanks your deliverability. Grow organically.
- Ignoring metrics — track open rate (target: 30-50%) and click rate (target: 3-10%).
Key Concepts
- Newsletter = regular email to subscribers with curated content
- RSS-to-email = automatically send new blog posts as a newsletter
- Open rate = % of recipients who open the email
- Click rate = % who click a link
- Unsubscribe = legally required opt-out mechanism
- Segmentation = sending different content to different groups
What to Try Next
- Capture leads into Google Sheets for your subscriber list
- Automate email with Resend for sending
- Repurpose blog posts for newsletter content
- Build a newsletter dashboard in Streamlit
FAQ
Mailchimp vs Brevo vs MailerLite — which to use?
Mailchimp = most popular, best templates, free for 500 contacts. Brevo = best free tier (300 emails/day), includes SMS. MailerLite = cleanest UI, free for 1,000 subscribers. Start with Mailchimp for simplicity; switch to Brevo for more free emails.
How do I grow my newsletter subscribers?
- Add a signup form to your website (footer, blog posts, popup)
- Offer a lead magnet (free guide, checklist, template)
- Share on social media (“Subscribe for weekly tips”)
- Cross-promote with other newsletters
- Add a signup link to your email signature
What’s a good open rate for newsletters?
30-50% is good for a small, engaged list. 20-30% is average. Below 20% means your subject lines or content need work. Clean your list regularly (remove inactive subscribers) to improve open rates.
Can I use AI to write my entire newsletter?
AI can draft, but always human-edit. AI is great for structure, summaries, and ideas. Humans are better at tone, nuance, and brand voice. The best newsletters are AI-drafted + human-polished. See Repurpose Blog Posts with AI. See Automate Lead Follow-Up Emails.