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
@spec deliver(recipient :: any(), template :: atom(), assigns :: map()) :: {:ok, Swoosh.Email.t()} | {:error, term()}