Socket
Socket
Sign inDemoInstall

amazon_ses

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

amazon_ses


Version published
Maintainers
1
Created
Source

= amazon_ses

Really simple gem that allows you to send email through amazon simple email service.

Installation

gem install amazon_ses

Usage:

require 'rubygems'
require 'amazon_ses'

# all methods return a raw http response object
# to get the xml just call body on the return object from any of
# the following methods.
# Exceptions will be throw on any api call that doesn't result in
# a 200 OK response from amazon.

 
# you must have a verified address with amazon to send mail
AmazonSES::Verify.address("youremail@gmail.com",amazon_secret,amazon_key)

# after verifying the address you can send mail

# simple send mail text only
AmazonSES::AmzMail.send(from,to,subject,body,secret,key)
# send html email
AmazonSES::AmzMail.send_html(from,to,subject,body,secret,key)
# if you produce your own email via the mail gem you can pass the result of calling to_s on the mail object
# to the following method
AmazonSES::AmzMail.send_raw(mail_string,amazon_secret,amazon_key)

# the following are two methods for getting stats

puts AmazonSES::Stats.send_quota(amazon_secret,amazon_key).body
puts AmazonSES::Stats.send_stats(amazon_secret,amazon_key).body

# the following is a helper object for looking at your stats

stobj = StatObject.new(amazon_secret,amazon_key)
puts stobj.sent_last_24_hours
puts stobj.reached_quota?

Hope you enjoy the Gem. If anyone wants to write a plugin for rails I would link definately link to it and find it useful.

== Note on Patches/Pull Requests

  • Fork the project.
  • Make your feature addition or bug fix.
  • Add tests for it. This is important so I don't break it in a future version unintentionally.
  • Commit, do not mess with rakefile, version, or history. (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
  • Send me a pull request. Bonus points for topic branches.

== Copyright

Copyright (c) 2011 jeff durand. See LICENSE for details.

FAQs

Package last updated on 21 Feb 2011

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc