# mod\_email\_status

Source: https://zotonic.com/docs/2112/mod_email_status

URI: https://zotonic.com/id/2112

Language: en



This module tracks for all outgoing email addresses:

- If emails are successfully sent
- Number of emails sent
- Number of errors
- Number of bounces
- Latest error message

With this it will be much easier to get feedback on all outgoing email.

Accepted Events
---------------

This module handles the following notifier callbacks:

- `observe_email_bounced`: Mark an email address as bouncing, only marks for messages which we know we have sent using `m_email_status:mark_bounced`.
- `observe_email_failed`: Mark recipient addresses as failed when delivery attempts bounce or hard-fail.
- `observe_email_is_blocked`: Report whether an address is blocked from receiving outbound email.
- `observe_email_is_recipient_ok`: Decide if sending to an address is allowed based on bounce/block history.
- `observe_email_received`: Record inbound email reception for recipient status tracking.
- `observe_email_sent`: Record successful outbound deliveries for recipient status tracking.
- `observe_tick_24h`: Purge old email status history during daily maintenance.

Delegate callbacks:

- `event/2` with `postback` messages: `email_status_block`, `email_status_reset`.

License: 

Attribution: 

Related resources: https://zotonic.com/api/agent/related/2112?language=en


## API access

- [API help](<https://zotonic.com/api-help>)
- [OpenAPI specification](<https://zotonic.com/openapi.json>)
- [This resource as JSON](<https://zotonic.com/api/agent/resource/2112?language=en>)
