Module: Sinatra

Defined in:
lib/sinatra/mailer_plugin/mail_object.rb,
lib/sinatra/mailer_plugin.rb,
lib/sinatra/markup_plugin.rb,
lib/sinatra/render_plugin.rb,
lib/sinatra/warden_plugin.rb,
lib/sinatra/routing_plugin.rb,
lib/sinatra/mailer_plugin/mailer_base.rb,
lib/sinatra/markup_plugin/tag_helpers.rb,
lib/sinatra/markup_plugin/form_helpers.rb,
lib/sinatra/routing_plugin/named_route.rb,
lib/sinatra/markup_plugin/format_helpers.rb,
lib/sinatra/markup_plugin/output_helpers.rb,
lib/sinatra/render_plugin/render_helpers.rb,
lib/sinatra/warden_plugin/warden_helpers.rb,
lib/sinatra/routing_plugin/routing_helpers.rb,
lib/sinatra/markup_plugin/asset_tag_helpers.rb

Overview

This is the abstract class that other mailers will inherit from in order to send mail

You can set the default delivery settings through:

SinatraMore::MailerBase.smtp_settings = {
  :host   => 'smtp.yourserver.com',
  :port   => '25',
  :user   => 'user',
  :pass   => 'pass',
  :auth   => :plain # :plain, :login, :cram_md5, no auth by default
  :domain => "localhost.localdomain" # the HELO domain provided by the client to the server
}

and then all delivered mail will use these settings unless otherwise specified.

Defined Under Namespace

Modules: MailerPlugin, MarkupPlugin, RenderPlugin, RoutingPlugin, WardenPlugin Classes: RouteNotFound