Sha256: 0695a76f2235d48d94410c37176a67736d96554669fc89d104c2f60efbc76c48

Contents?: true

Size: 549 Bytes

Versions: 12

Compression:

Stored size: 549 Bytes

Contents

module MnoEnterprise
  module MailAdapters
    # SMTP Adapter for MnoEnterprise::MailClient
    class SmtpAdapter < Adapter
      class << self
        # Return a smtp client configured with the SMTP settings
        # @return [SmtpClient]
        def client
          @client = MnoEnterprise::SmtpClient.send :new
        end

        # Send a template
        # @See Adapter#deliver
        def deliver(template, from, to, vars={}, opts={})
          client.deliver(template, from, to, vars, opts).deliver
        end

      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
mno-enterprise-core-3.4.0 lib/mno_enterprise/mail_adapters/smtp_adapter.rb
mno-enterprise-core-3.3.3 lib/mno_enterprise/mail_adapters/smtp_adapter.rb
mno-enterprise-core-3.3.2 lib/mno_enterprise/mail_adapters/smtp_adapter.rb
mno-enterprise-core-3.2.1 lib/mno_enterprise/mail_adapters/smtp_adapter.rb
mno-enterprise-core-3.3.1 lib/mno_enterprise/mail_adapters/smtp_adapter.rb
mno-enterprise-core-3.3.0 lib/mno_enterprise/mail_adapters/smtp_adapter.rb
mno-enterprise-core-3.2.0 lib/mno_enterprise/mail_adapters/smtp_adapter.rb
mno-enterprise-core-3.1.4 lib/mno_enterprise/mail_adapters/smtp_adapter.rb
mno-enterprise-core-3.1.3 lib/mno_enterprise/mail_adapters/smtp_adapter.rb
mno-enterprise-core-3.1.2 lib/mno_enterprise/mail_adapters/smtp_adapter.rb
mno-enterprise-core-3.1.1 lib/mno_enterprise/mail_adapters/smtp_adapter.rb
mno-enterprise-core-3.1.0 lib/mno_enterprise/mail_adapters/smtp_adapter.rb