Module: FastMailer

Defined in:
lib/fast-mailer.rb,
lib/fast-mailer/smtp.rb,
lib/fast-mailer/mailer.rb,
lib/fast-mailer/mock_smtp.rb,
lib/fast-mailer/exceptions.rb,
lib/fast-mailer/configuration.rb,
lib/fast-mailer/file_blacklist.rb

Defined Under Namespace

Classes: BlacklistError, Configuration, FastMailerError, FileBlacklist, Mailer, MockSMTP, SMTP

Class Method Summary collapse

Class Method Details

.test_modeObject



19
20
21
# File 'lib/fast-mailer.rb', line 19

def test_mode
  @@test_mode ||= false
end

.test_mode=(value) ⇒ Object



14
15
16
17
# File 'lib/fast-mailer.rb', line 14

def test_mode=(value)
  require 'fast-mailer/mock_smtp' if value
  @@test_mode = value
end