Module: Padrino8b7c:f320:99b9:690f:4595:cd17:293a:c069Mailer  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 "stacey46@example.org"
    to "stacey46@example.org"
    subject "Welcome!"
    body render('email/registered')
  end
end

Defined Under Namespace  Modules: Helpers, Mime Classes: Base   Class Method Summary     .registered(app) ⇒ Object (also: included)  Registers the Padrino8b7c:f320:99b9:690f:4595:cd17:293a:c069Mailer helpers with the application.    Class Method Details   .registered(app) ⇒ Object Also known as: included   Registers the Padrino8b7c:f320:99b9:690f:4595:cd17:293a:c069Mailer helpers with the application.   Examples: require 'padrino-mailer'
class Demo < Padrino8b7c:f320:99b9:690f:4595:cd17:293a:c069pplication
  register Padrino8b7c:f320:99b9:690f:4595:cd17:293a:c069Mailer8b7c:f320:99b9:690f:4595:cd17:293a:c069Helpers
end  Parameters:   app (Sinatr8b7c:f320:99b9:690f:4595:cd17:293a:c069Application) —  The application that needs mailers.     

    
{'path': 'public/docs/padrino/padrino/mailer.html', 'source': 'DevDocs.IO'}