Guest User

Untitled

a guest
Apr 20th, 2018
269
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. require 'net/smtp'
  2. require "openssl"
  3. require "smtp_tls"
  4.  
  5. username = ''
  6. password = ''
  7. msg = "Calculation batch complete."
  8.  
  9. Net::SMTP.start( 'smtp.gmail.com' ,
  10. 587,
  11. 'localhost.localdomain',
  12. username,
  13. password,
  14. 'plain' ){ |smtp|
  15. smtp.send_message( msg,
  16. "perryautam@gmail.com",
  17. "perryautam@gmail.com" )
Add Comment
Please, Sign In to add comment