View Source Rivet.Email.Example.Mailer (rivet_email v1.4.0)
This is an example of how to deploy Rivet Email, and is included so other projects may include it in their tests.
Summary
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()
Functions
@spec deliver(recipient :: any(), template :: atom(), assigns :: map()) :: {:ok, Swoosh.Email.t()} | {:error, term()}