Messages
Covers internal messages, the mail channel and the delivery queue.
Templates
- A template has a code, title, content and channel
- Variables are rendered at send time; plain text mail is supported
- The template code is kept in the send log for traceability
Send flow
- The server renders the template, writes a pending send log per receiver, then enqueues the delivery job to
emails. - The API returns immediately.
- worker sends the mail and updates the log status.
- If enqueuing fails, the log is marked failed locally.
INFO
A "success" result in the UI means queued, not delivered. Check the send log for actual delivery status.
Failures and replay
- Delivery failures are recorded by the queue; failed jobs land in
system_failed_jobs - The job retries up to three times with 10s / 20s backoff
- The admin "Retry" button sends synchronously so the result is immediate
- Permanent failures such as invalid addresses are not retried
Channel configuration
SMTP settings live in .env. An unconfigured channel makes delivery jobs fail without affecting the main business flow.
