Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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" )
Add Comment
Please, Sign In to add comment