Module: SinatraMore

Defined in:
lib/sinatra_more/mailer_plugin/mail_object.rb,
lib/sinatra_more/version.rb,
lib/sinatra_more/warden_plugin.rb,
lib/sinatra_more/render_plugin.rb,
lib/sinatra_more/markup_plugin.rb,
lib/sinatra_more/mailer_plugin.rb,
lib/sinatra_more/routing_plugin.rb,
lib/sinatra_more/markup_plugin/tag_helpers.rb,
lib/sinatra_more/mailer_plugin/mailer_base.rb,
lib/sinatra_more/markup_plugin/form_helpers.rb,
lib/sinatra_more/routing_plugin/named_route.rb,
lib/sinatra_more/render_plugin/render_helpers.rb,
lib/sinatra_more/markup_plugin/format_helpers.rb,
lib/sinatra_more/warden_plugin/warden_helpers.rb,
lib/sinatra_more/markup_plugin/output_helpers.rb,
lib/sinatra_more/routing_plugin/routing_helpers.rb,
lib/sinatra_more/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: AssetTagHelpers, FormHelpers, FormatHelpers, MailerPlugin, MarkupPlugin, OutputHelpers, RenderHelpers, RenderPlugin, RoutingHelpers, RoutingPlugin, TagHelpers, WardenHelpers, WardenPlugin Classes: MailObject, MailerBase, NamedRoute, RouteNotFound

Constant Summary collapse

VERSION =
"0.3.43"