Skip to main content

Module email

Module email 

Source
Expand description

SMTP email client — lettre wrapper.

Sends HTML/plain emails via SMTP. The client is configured once from config.toml [email] section and reused across all send_email calls.

§Providers

Preset providers auto-fill SMTP host/port/TLS settings:

  • gmail → smtp.gmail.com:465 / TLS
  • icloud → smtp.mail.me.com:587 / STARTTLS
  • fastmail → smtp.fastmail.com:465 / TLS
  • resend → smtp.resend.com:587 / STARTTLS (API key as password)
  • custom → manual host/port/tls required

Structs§

SendReceipt
Receipt returned after a successful send.
SmtpClient
SMTP client — wraps lettre for sending emails.

Enums§

SmtpProvider
Preset SMTP provider configurations.
SmtpTls
SMTP transport type.