Skip to main content

Module email

Module email 

Source
Expand description

Sending email. The log mailer prints the message, which is what self-hosters without an email server use (spec section 8: “without an email server, login links are printed to the logs”); the SMTP mailer sends through SMTP_URL; tests capture messages.

Structs§

Email
SmtpMailer
A configured SMTP connection.

Enums§

MailError
Mailer

Constants§

SMTP_TIMEOUT
How long one SMTP connect or command may take before the send fails (and the job retries). lettre’s own default is 60 s, long enough to hold the single job runner on a hung server.