Skip to main content

Module email_deliver

Module email_deliver 

Source

EnumsΒ§

TemplateApplyResult πŸ”’

ConstantsΒ§

BASE_BACKOFF_SECS πŸ”’
BATCH_SIZE πŸ”’
JITTER_SECS πŸ”’
MAX_BACKOFF_SECS πŸ”’
RECIPIENT_ADDRESS_PURGE_INTERVAL πŸ”’
How often the sender asks the model to purge expired recipient addresses. The model then rolls its own 1 in 10 chance, so a sweep lands roughly every ten hours.

StaticsΒ§

BASE_URL πŸ”’
The same variable the server reads into ApplicationConfiguration::base_url: a mailed link has to point at the environment that minted its token. Not FRONTEND_BASE_URL, which no overlay sets, so reading that sends dev and test links to production.
DB_URL πŸ”’
SMTP_FROM πŸ”’
SMTP_HOST πŸ”’
SMTP_MESSAGE_ID_DOMAIN πŸ”’
SMTP_PASS πŸ”’
SMTP_USER πŸ”’

FunctionsΒ§

apply_email_template_replacements πŸ”’
build_email_message πŸ”’
compute_next_retry_at πŸ”’
extract_smtp_error_details πŸ”’
has_io_error πŸ”’
infer_email_domain πŸ”’
insert_placeholders πŸ”’
is_transient_smtp_error πŸ”’
mail_sender
main
placeholder_bag_replacements πŸ”’
Turns a delivery’s placeholder bag into {{ KEY }} substitutions. Nested objects and arrays are skipped: there is no sensible rendering for them in body text.
record_message_build_failure πŸ”’
record_non_retryable_failure πŸ”’
retry_window_expired πŸ”’
send_message