Rambla.Smtp (Rambla v0.15.0) View Source

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.

  %{to: "am@example.com", subject: "Hi there", body: "I ❤ SMTP"}