Rivet.Ident.Example.Mailer (rivet_ident v3.5.0)
View SourceThis 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.Ident.Email.t()
@type email_recipient() :: email_model() | user_model() | user_id()
@type user_id() :: String.t()
@type user_model() :: Rivet.Ident.User.t()
Functions
@spec deliver(recipient :: any(), template :: atom(), assigns :: map()) :: {:ok, Swoosh.Email.t()} | {:error, term()}
@spec get_email(email_recipient()) :: {:ok, email_model()} | {:error, reason :: any()}