Email & Notifications for AI Coders
Send transactional emails, marketing campaigns, and push notifications from your app.
In this chapter
- The difference between transactional and marketing emails
- Which email service to pick (Resend, SendGrid, Postmark)
- How to ask AI to send welcome emails, receipts, and resets
- How to make sure your emails don't land in spam
Types of Email
Email Service Providers
Building Email Templates
Other Notification Types
Prompt This
Copy-paste these prompts into your AI tool to apply what you just learned.
“Set up transactional email for my app using Resend. I need to send [welcome emails / password resets / notifications] with a clean HTML template.”
“Create an email template for [type of email]. It should include my logo, a greeting, the main message, and a call-to-action button.”
Notification Infrastructure
Services that handle multiple notification channels in one place.
Frequently Asked Questions
What's the easiest way to send emails from my app?
Resend is the simplest option. It has a clean API, React email templates, and a generous free tier (100 emails/day). Set up an API route, install the Resend package, and you can send emails in about 5 minutes with your AI tool.
How do I avoid my emails going to spam?
Three things: verify your domain with your email provider (SPF, DKIM, DMARC records), send from a real domain (not gmail.com), and don't use spammy subject lines. Most email services walk you through domain verification, and your AI tool can help set up the DNS records.
Should I use a service or my own email server?
Always use a service (Resend, Postmark, AWS SES). Running your own email server is one of the hardest things in infrastructure: deliverability, spam filtering, IP reputation. Services handle all of this for you, and Resend's free plan covers most small projects.