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