shield_notifier v0.2.0 Shield.Notifier.Channel.Email

Email module that implements Shield.Notifier.Channel behaviour.

Summary

Functions

Delivers email asyncronusly to receipents using template and template data

Functions

deliver(recipients, template, data)

Delivers email asyncronusly to receipents using template and template data.

Examples

Shield.Notifier.Channel.Email.deliver(
  ["recipient@example.com"],
  :confirmation,
  %{identity: "Recipient", confirmation_url: "https://xyz.com/con?t=1234"}
)

Shield.Notifier.Channel.Email.deliver(
  ["recipient@example.com"],
  :recover_password,
  %{identity: "Recipient", recover_password_url: "https://x.co/rt?t=1opx"}
)