Guest User

Untitled

a guest
Apr 20th, 2018
274
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 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', 587, 'localhost.localdomain', username, password, 'plain' ) do |smtp|
  10. smtp.send_message(msg, "perryautam@gmail.com", "perryautam@gmail.com")
  11. end
Add Comment
Please, Sign In to add comment