Padrino::Mailer
Module: Padrino::Mailer
Overview
This component uses the mail
library to create a powerful but simple mailer within Padrino (and Sinatra). There is full support for using plain or html content-types as well as for file attachments.
Using the mailer in Padrino has two forms. The 'quick' method requires only use of the email
method directly in the controller:
# app/controllers/session.rb post :create do email do from "tony@reyes.com" to "john@smith.com" subject "Welcome!" body render('email/registered') end end