Method: Eye::Notify::AWSSDK#execute

Defined in:
lib/eye/notify/awssdk.rb

#executeObject



24
25
26
27
28
29
30
# File 'lib/eye/notify/awssdk.rb', line 24

def execute
  options = { region: "us-east-1" } # default to us-east-1
  options[:region] = region if region
  options[:credentials] = Aws::Credentials.new(access_key_id, secret_access_key) if access_key_id && secret_access_key
  client = Aws::SES::Client.new(options)
  client.send_email(message)
end