Skip to content

Instantly share code, notes, and snippets.

Created November 12, 2009 02:07
Show Gist options
  • Save anonymous/232527 to your computer and use it in GitHub Desktop.
Save anonymous/232527 to your computer and use it in GitHub Desktop.
require 'net/smtp'
require "openssl"
require "smtp_tls"
username = ''
password = ''
msg = "Calculation batch complete."
Net::SMTP.start( 'smtp.gmail.com' ,
587,
'localhost.localdomain',
username,
password,
'plain' ){ |smtp|
smtp.send_message( msg,
"perryautam@gmail.com",
"perryautam@gmail.com" )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment