v1.4.3These docs are for laramail v1.4.3. View changelog

Email Providers

All providers implement the MailProvider interface, giving you a consistent API regardless of which email service you use:

interface MailProvider {
  send(options: MailOptions): Promise<MailResponse>;
}

Choose the provider that best fits your infrastructure and swap between them without changing your application code.

Available Providers

  • SMTP -- Built-in provider using Nodemailer. No extra dependencies required.
  • SendGrid -- Cloud-based email delivery via the SendGrid API.
  • AWS SES -- Amazon Simple Email Service with full AWS SDK support.
  • Mailgun -- Mailgun API-based email delivery with US and EU region support.
  • Resend -- Modern email API built for developers.
  • Postmark -- Transactional email service focused on delivery speed.
  • Log -- Console-logging driver for local development. No external dependencies.
  • Custom -- Register your own provider with Mail.extend().