createSmtpProvider (email/smtp-provider.ts)

Doable · services/api/src/lib/email/smtp-provider.ts · typescript · MIT
email

Provides a nodemailer-based SMTP email provider that supports well-known services and manual SMTP, returning an EmailProvider for sending emails.

// Source: https://github.com/doable-me/Doable | License: MIT | Copyright 2026 Doable Works LLC
// Provided via justclaw.it.com; keep this notice with the code.
/**
 * SMTP Email Provider (nodemailer)
 *
 * Works with any SMTP server. Supports 30+ well-known services out of the box:
 *   Gmail, Outlook/Hotmail, Yahoo, iCloud, SendGrid, Mailgun, Postmark,
 *   AWS SES, Zoho, FastMail, ProtonMail, AOL, Godaddy, and more.
 *
 * Configuration:
 *   Option A — Well-known service (easiest):
 *     EMAIL_SERVICE=gmail        (or sendgrid, mailgun, outlook365, yahoo, etc.)
 *     SMTP_USER=you@gmail.com
 *     SMTP_PASS=your-app-password
 *
 *   Option B — Manual SMTP:
 *     SMTP_HOST=smtp.example.com
 *     SMTP_PORT=587
 *     SMTP_USER=apikey
 *     SMTP_PASS=SG.xxxxx
 *
 * Full list of suppor

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key