module Mailer
Overview
Sending Emails
Full Example
Mailer.config(provider: Mailer::Mailgun.new(apikey, domain))
email = Mailer::Message.new
email.to("[email protected]","their_name")
email.from = "[email protected]"
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
Defined in:
mailer.crmailer/mock.cr
mailer/provider.cr
mailer/sendgrid.cr
mailer/version.cr
Constant Summary
-
VERSION =
"0.1.0"