Class: Octo::EmailSender

Inherits:
Object
  • Object
show all
Defined in:
lib/octocore-cassandra/email.rb

Overview

Class to perform Resque operations for sending email

Class Method Summary collapse

Class Method Details

.perform(message) ⇒ Object

Resque Perform method

Parameters:

  • message (Hash)

    The details of email



55
56
57
58
59
# File 'lib/octocore-cassandra/email.rb', line 55

def self.perform(message)
  _mandrill_config = ENV['MANDRILL_API_KEY'] || Octo.get_config(:mandrill_api_key)
  m = Mandrill::API.new _mandrill_config
  m.messages.send message
end