Created
October 3, 2009 08:04
-
-
Save developish/200489 to your computer and use it in GitHub Desktop.
email-with-pony.rb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "rubygems" | |
gem "hiroshi-pony" | |
require "pony" | |
Pony.mail({ | |
:to => "[email protected]", | |
:subject => "subject", | |
:body => "body", | |
:via => :smtp, :smtp => { | |
:host => 'smtp.gmail.com', | |
:port => '587', | |
:tls => true, | |
:user => '[email protected]', | |
: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