Rivet.Ident.Example.Mailer (rivet_ident v4.0.0)

Copy Markdown View Source

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

Summary

Types

email_model()

@type email_model() :: Rivet.Ident.Email.t()

email_recipient()

@type email_recipient() :: email_model() | user_model()

user_id()

@type user_id() :: String.t()

user_model()

@type user_model() :: Rivet.Ident.User.t()

Functions

get_email(email)

@spec get_email(email_recipient()) :: {:ok, email_model()} | {:error, reason :: any()}

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