Mailers

Last updated 7 months ago

The mailer has the ability to set thefrom,to,cc,bcc,subjectandbody. You may use therenderhelper to create the body of the email.

class WelcomeMailer < Quartz::Mailer
def initialize
super
from "Amber Crystal", "[email protected]"
end
‚Äč
def deliver(name: String, email: String)
to name: name, email: email
subject "Welcome to Amber"
body render("mailers/welcome_mailer.slang", "mailer.slang")
super()
end
end