View Source Rivet.Email (rivet_email v1.1.0)
send(recips, template) send(recips, template, assigns)
For each good recipient call template.format(%@email_model{}, assigns), where email.user is preloaded on %@email_model{}
recips
can be one or list of: user id, auser_model
, or aemail_model
assigns
(optional) is a dictionary with key/value attributes to use in the template
Returns a tuple of :ok or :error with a list of results from each send. It will stop at the first error, however, and not continue.