Class: SendgridCliMailer::Runner

Inherits:
Object
  • Object
show all
Defined in:
lib/sendgrid_cli_mailer.rb

Overview

other code can go here

Instance Method Summary collapse

Constructor Details

#initialize(mailer_settings, options, body) ⇒ Runner

Returns a new instance of Runner.



5
6
7
8
# File 'lib/sendgrid_cli_mailer.rb', line 5

def initialize(mailer_settings,options,body)
  SendgridToolkit::Mail.new(mailer_settings['user'], mailer_settings['key']).send_mail :to => options[:to], :from => mailer_settings['from'], 
    :subject => options[:subject], :text => body
end