aj-geddes avatar

Email Service Integration

This covers the full stack of email integration, from raw SMTP to SendGrid and AWS SES. You get working examples for transactional emails, password resets, and background sending with proper retry logic. The reference guides include MJML templates and FastAPI background tasks, which is smart since blocking on email sends kills performance. It's opinionated about the basics like requiring unsubscribe links and never sending synchronously. If you're adding email to any backend project, this gets you past the boilerplate and into production patterns quickly. The validation and error handling sections alone will save you from common deliverability headaches.

skills.sh installs
470
GitHub stars
379
last updated
Aug 21, 2026

Install

$ npx -y skills add aj-geddes/useful-ai-prompts --skill email-service-integration --agent claude-code

Installs into .claude/skills of the current project.

Files

Email Service Integration

Table of Contents

Overview

Build comprehensive email systems with SMTP integration, third-party email providers (SendGrid, Mailgun, AWS SES), HTML templates, email validation, retry mechanisms, and proper error handling.

When to Use

  • Sending transactional emails
  • Implementing welcome/confirmation emails
  • Creating password reset flows
  • Sending notification emails
  • Building email templates
  • Managing bulk email campaigns

Quick Start

Minimal working example:

# config.py
import os

class EmailConfig:
    MAIL_SERVER = os.getenv('MAIL_SERVER', 'smtp.gmail.com')
    MAIL_PORT = int(os.getenv('MAIL_PORT', 587))
    MAIL_USE_TLS = os.getenv('MAIL_USE_TLS', True)
    MAIL_USERNAME = os.getenv('MAIL_USERNAME')
    MAIL_PASSWORD = os.getenv('MAIL_PASSWORD')
    MAIL_DEFAULT_SENDER = os.getenv('MAIL_DEFAULT_SENDER', 'noreply@example.com')

Sponsors

Details

Repository
github.com/aj-geddes/useful-ai-prompts
Category
AI & Agent Building
First seen
Jun 3, 2026

More from aj-geddes/useful-ai-prompts

All 258
1aj-geddes avatarinfrastructure-monitoringaj-geddes/useful-ai-promptsSet up comprehensive infrastructure monitoring with Prometheus, Grafana, and alerting systems for metrics, health checks, and performance tracking.470skills.sh installs
2aj-geddes avatarangular-module-designaj-geddes/useful-ai-promptsDesign Angular modules using feature modules, lazy loading, and dependency injection. Use when organizing large Angular applications with proper separation of c469skills.sh installs
3auth0 avatarexpress-oauth2-jwt-bearerauth0/agent-skillsUse when protecting Express or Node.js API endpoints with JWT Bearer token validation, scope-based access control, or DPoP binding. Integrates express-oauth2-jw469skills.sh installs
4aj-geddes avatarpull-request-automationaj-geddes/useful-ai-promptsAutomate pull request workflows with templates, checklists, auto-merge rules, and review assignments. Reduce manual overhead and improve consistency.468skills.sh installs
5aj-geddes avatardatabase-monitoringaj-geddes/useful-ai-promptsMonitor database performance and health. Use when setting up monitoring, analyzing metrics, or troubleshooting database issues.467skills.sh installs
6aj-geddes avataridempotency-handlingaj-geddes/useful-ai-promptsImplement idempotency keys and handling to ensure operations can be safely retried without duplicate effects. Use when building payment systems, APIs with retri467skills.sh installs