mod_email_status

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.

Edit on GitHub

Observes

Notifications

observe_email_failed/2

Notify that we could NOT send an e-mail (there might be a bounce later...) The Context is the depickled z_email:send/2 context.

Notifications

observe_email_bounced/2

Bounced e-mail notification. The recipient is the e-mail that is bouncing. When the the message_nr is unknown the it is set to ‘undefined’. This can happen if…

Notifications

observe_email_sent/2

Notify that we could NOT send an e-mail (there might be a bounce later...) The Context is the depickled z_email:send/2 context.

Notifications

observe_email_is_recipient_ok/2

Check if an email address is safe to send email to. The email address is not blocked and is not marked as bouncing.

Models

Models

email_status

Tracks the send/bounce/error status of all outgoing emails.

Filters

Filters

is_valid_email

Test whether a value has valid email-address syntax.