Expand description
Product-neutral mail outbox dispatch helpers.
Structs§
- Dispatch
Stats - Aggregate counters returned by an outbox dispatch or drain pass.
- Mail
Outbox Dispatch Config - Configuration for the shared mail outbox dispatcher.
- Mail
Outbox Dispatch Context - Lightweight row metadata captured before a dispatcher consumes the concrete row.
- Mail
Outbox Retry Policy - Retry and truncation policy for an outbox dispatcher.
- Mail
Outbox Status Enum - Generated by sea-orm-macros
- Mail
Outbox Status Iter - An iterator over the variants of MailOutboxStatus
- Mail
Outbox Status Variant Iter - An iterator over the variants of MailOutboxStatusVariant
- Mail
Template Code Enum - Generated by sea-orm-macros
- Mail
Template Code Iter - An iterator over the variants of MailTemplateCode
- Mail
Template Code Variant Iter - An iterator over the variants of MailTemplateCodeVariant
- Stored
Mail Payload - Raw JSON payload stored in
mail_outbox.payload_json.
Enums§
- Mail
Outbox Delivery Failure Decision - Decision returned after a mail delivery attempt fails.
- Mail
Outbox Status - Persistent mail outbox row status.
- Mail
Outbox Status Variant - Generated by sea-orm-macros
- Mail
Template Code - Built-in Aster mail template code.
- Mail
Template Code Variant - Generated by sea-orm-macros
Constants§
- DEFAULT_
ERROR_ MAX_ LEN - Default maximum stored delivery error length.
- DEFAULT_
MARK_ SENT_ RETRY_ DELAYS_ MS - Default retry delays for persisting “sent” after successful delivery.
Traits§
- Mail
Outbox Dispatch Row - Minimal row metadata needed by the shared outbox dispatcher.
Functions§
- dispatch_
mail_ outbox - Runs one mail outbox dispatch pass using product-provided persistence callbacks.
- drain_
mail_ outbox - Runs mail outbox dispatch passes until no rows are claimed or the configured drain limit is hit.
- retry_
delay_ secs - Returns the default mail delivery retry delay for an attempt count.
- retry_
mark_ sent - Retries a product-provided
mark_sentoperation after SMTP success. - truncate_
error - Truncates an error string without splitting UTF-8 code points.