View Source Rivet.Ident.Example.Mailer (rivet_ident v3.1.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.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

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

generate_assigns(assigns, configs)

View Source
@spec get_email(email_recipient()) :: {:ok, email_model()} | {:error, reason :: any()}
Link to this function

get_emails(recip, out \\ [])

View Source
Link to this function

sendto(recips, template, assigns \\ [], configs \\ [])

View Source