Email Should Not Be This Hard
Resend gives you email in 3 lines. Free tier: 3000 emails/month.
JavaScript
import { Resend } from "resend";
const resend = new Resend("re_your_api_key");
const { data } = await resend.emails.send({
from: "hello@yourdomain.com",
to: "user@example.com",
subject: "Welcome!",
html: "<h1>Welcome</h1>"
});
Python
import resend
resend.api_key = "re_your_api_key"
email = resend.Emails.send({
"from": "hello@yourdomain.com",
"to": ["user@example.com"],
"subject": "Welcome!",
"html": "<h1>Welcome</h1>"
})
cURL
curl -X POST https://api.resend.com/emails \
-H "Authorization: Bearer re_your_api_key" \
-H "Content-Type: application/json" \
-d "{\"from\":\"hello@yourdomain.com\",\"to\":[\"user@example.com\"],\"subject\":\"Test\",\"html\":\"Hello\"}"
Comparison
| Service | Free Tier | Setup |
|---|---|---|
| Resend | 3000/mo | 5 min |
| SendGrid | 100/day | 30 min |
| AWS SES | 62K/mo (EC2) | 2 hours |
| Mailgun | 1000/mo | 15 min |
Use Cases
- Welcome emails on signup
- Password reset flows
- Order confirmations
- Alert notifications
- Weekly digest emails
More from me: 10 Dev Tools I Use Daily | 77 Scrapers on a Schedule | 150+ Free APIs
Top comments (0)