Module: Mailthis::Mailer
Defined Under Namespace
Modules: InstanceMethods Classes: NullLogger
Constant Summary collapse
- REQUIRED_SETTINGS =
[ :smtp_helo, :smtp_server, :smtp_port, :smtp_user, :smtp_pw, :smtp_auth, :from, :logger ].freeze
- DEFAULT_AUTH =
'login'.freeze
Class Method Summary collapse
Class Method Details
.new(*args, &block) ⇒ Object
28 29 30 31 32 33 34 |
# File 'lib/mailthis/mailer.rb', line 28 def self.new(*args, &block) if !ENV['MAILTHIS_TEST_MODE'] MailthisMailer.new(*args, &block) else TestMailer.new(*args, &block) end end |