Skip to content

Instantly share code, notes, and snippets.

@vemarav
Last active April 22, 2016 05:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vemarav/7d5ee5afdd6b4fb57d676f1e5e641896 to your computer and use it in GitHub Desktop.
Save vemarav/7d5ee5afdd6b4fb57d676f1e5e641896 to your computer and use it in GitHub Desktop.
require 'aws-sdk'
ses = AWS.ses
AWS.config(
:access_key_id => '..',
:secret_access_key => '..,
:server => '..')
#puts ses.identities.map(:&identity)
ses.send_email(subject: "Hi",
from: "aravind@classpro.in",
to: "aravind@classpro.in",
body_text: "Hi",
body_html:"<html><h1>Hi</h1></html>")
puts ses.statistics
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment