Class: Spree::Core::MailMethod

Inherits:
Object
  • Object
show all
Defined in:
lib/spree/core/mail_method.rb

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ MailMethod

Returns a new instance of MailMethod.


4
5
# File 'lib/spree/core/mail_method.rb', line 4

def initialize(options={})
end

Instance Method Details

#deliver!(mail) ⇒ Object


7
8
9
10
11
# File 'lib/spree/core/mail_method.rb', line 7

def deliver!(mail)
  if Config.enable_mail_delivery
    mailer.deliver!(mail)
  end
end

#mailerObject


13
14
15
# File 'lib/spree/core/mail_method.rb', line 13

def mailer
  mailer_class.new(mail_server_settings)
end