View Source Rivet.Email.Example.Mailer (rivet_email v1.1.0)

This is an example of how to deploy Rivet Email, and is included so other projects may include it in their tests.

Link to this section Summary

Link to this section Types

@type email_model() :: Rivet.Email.Example.Mailer.Email.t()
@type email_recipient() :: email_model() | user_model() | user_id()
@type user_id() :: String.t()
@type user_model() :: Rivet.Email.Example.Mailer.User.t()

Link to this section Functions

Link to this function

deliver(recipient, template, assigns)

View Source
@spec deliver(recipient :: any(), template :: atom(), assigns :: map()) ::
  {:ok, Swoosh.Email.t()} | {:error, term()}
Link to this function

get_emails(recip, out \\ [])

View Source
Link to this function

send(recips, template, assigns \\ [])

View Source