View Source Rambla.Smtp (Rambla v1.2.6)
Default connection implementation for 📧 SMTP.
It expects a message to be a map containing the following fields:
:to
, :subject
, :body
and the optional :from
that otherwise would be
taken from the global settings (releases.mix
) from []:rambla, :pools, Rambla.Smtp]
.
For instance, this call would send an email to email:am@example.com with the respective subject and body.
Rambla.publish(
Rambla.Smtp,
%{to: "am@example.com", subject: "Hi there", body: "I ❤ SMTP"}
}