module MandrillClient

An interface to the Mandrill API @example

MandrillClient.send_template(template_name(string), template_content(array), message(hash))

@deprecated Please use {MnoEnterprise::MailClient}

Public Class Methods

client() click to toggle source

Return a mandrill client configured with the right API key @deprecated Use MnoEnterprise::MailClient

# File lib/mandrill_client.rb, line 9
def client
  @client ||= Mandrill::API.new(MnoEnterprise.mandrill_key)
end
deliver(template,from,to,vars = {},opts = {}) click to toggle source

A simpler version of send_template

@deprecated Use MnoEnterprise::MailClient

# File lib/mandrill_client.rb, line 25
def deliver(template,from,to,vars = {},opts = {})
  warn '[DEPRECATION] `MandrillClient` is deprecated. Please use `MnoEnterprise::MailClient` instead.'
  MnoEnterprise::MailClient.deliver(template,from,to,vars,opts)
end
send_template(*args) click to toggle source

Send the provided template with options

@example MandrillClient.send_template(template_name(string), template_content(array), message(hash)) @deprecated Use MnoEnterprise::MailClient

# File lib/mandrill_client.rb, line 17
def send_template(*args)
  warn '[DEPRECATION] `MandrillClient` is deprecated. Please use `MnoEnterprise::MailClient` instead.'
  MnoEnterprise::MailClient.adapter.send_template(*args)
end