View Source AntikytheraEal.AlertMailer.Behaviour behaviour (antikythera v0.5.1)

Interface to email delivery backend for core/gear alerts.

See AntikytheraEal for common information about pluggable interfaces defined in antikythera.

Summary

Callbacks

Sends an alert email.

Callbacks

@callback deliver(mail :: AntikytheraEal.AlertMailer.Mail.t()) :: :ok | {:error, term()}

Sends an alert email.

CC/BCC and HTML mail is omitted for simplicity.

This callback is called in AntikytheraCore.Alert.Handler.Email, that is, when an alert email about error(s) in either antikythera core or gear is sent.