Skip to main content
Crate: nestrs-mail · Feature: mail · Guide: Mail

MailModule::register

Exports MailService.

MailService

render_template

Replaces {{key}} with HTML-escaped values.

MailMessage

to, subject, html, idempotency_key: Option<String>.

MailError

Transport(String) (retryable) · Permanent(String) (permanent() == true).

Transports

  • InMemoryMailTransport::new() → inbox() / clear()
  • HttpMailTransport behind feature http