module

Mailer

Sending Emails

Full Example

Mailer.config(provider: Mailer::Mailgun.new(apikey, domain))
email = Mailer::Message.new
email.to("them@somedomain.com","their_name")
email.from = "you@yourdomain.com"
email.subject = "Hello"
email.text = "Some plain text messaeg"
email.html = "<p>Some html message <img src='cid:logo.jpg'></p>"
email.attachment = Mailer::Attachment.new(filename: "test.pdf" , path: "./spec/test.pdf")
email.inline = Mailer::Attachment.new(filename: "logo.jpg" , path: "./spec/test.png")
email.send

Constants

VERSION = "0.1.0"

Class methods

config(provider : Mailer::Provider)
Source
provider
Source

Nested types