Skip to main content

Crate sofie_mail

Crate sofie_mail 

Source
Expand description

Mail rendered from templates, queued with a handler’s commit and sent by a job, so a request never waits on a mail server.

Structs§

Address
Written into headers and SMTP commands as it is, so it holds nothing that could end either.
Body
Mail
Mailer
Only resolved as an argument: a handler’s mails are sent once its outcome commits.
Setup
What every mail is sent with: sofie::run reads it from SOFIE_MAIL_*, sofie-testing makes a fake.
SmtpSettings
Suppression
Template
A template the build script compiled, keyed <crate>/<name> after its file mails/<name>.html.

Enums§

Reason
Scope
Security

Constants§

UNSUBSCRIBE_PATH
Where a bulk mail’s unsubscribe link goes, below the app’s public URL.

Functions§

scopes
suppress
A new suppression, or none when one already covers the scope.
templates