Skip to content

Instantly share code, notes, and snippets.

@developish
Created October 3, 2009 08:04
Show Gist options
  • Save developish/200489 to your computer and use it in GitHub Desktop.
Save developish/200489 to your computer and use it in GitHub Desktop.
email-with-pony.rb
require "rubygems"
gem "hiroshi-pony"
require "pony"
Pony.mail({
:to => "brandon@developish.com",
:subject => "subject",
:body => "body",
:via => :smtp, :smtp => {
:host => 'smtp.gmail.com',
:port => '587',
:tls => true,
:user => 'from@gmail.com',
:password => 'password',
:auth => :plain, # :plain, :login, :cram_md5, no auth by default
:domain => "MacBook.local" # the HELO domain provided by the client to the server
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment