Pony, The Express Way To Send Email From Ruby

pony email ruby opensource

Sun Nov 02 14:53:04 -0800 2008

Want to fire off a quick email from your Ruby script? Finding ActionMailer to be overkill, but Net::SMTP to be…um, underkill? Envious of PHP’s mail(), which sends an email with a single function call?

Then take a deep breath, relax, and gem install pony.

require 'rubygems'
require 'pony'
Pony.mail(:to => 'you@example.com', :from => 'me@example.com', :subject => 'Hello')