Sha256: b7dd1fb6d61e19f1d04026f4f8bac03dc68ac27ed074cfb5208e82b5247dc5f3
Contents?: true
Size: 494 Bytes
Versions: 24
Compression:
Stored size: 494 Bytes
Contents
module Spree module Core class MailMethod def initialize(options={}) end def deliver!(mail) if Config.enable_mail_delivery mailer.deliver!(mail) end end def mailer mailer_class.new(mail_server_settings) end private def mailer_class Rails.env.test?? Mail::TestMailer : Mail::SMTP end def mail_server_settings MailSettings.new.mail_server_settings end end end end
Version data entries
24 entries across 24 versions & 1 rubygems