Skip to content

Instantly share code, notes, and snippets.

@ch1c0t
Created March 31, 2018 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ch1c0t/9ac1e83b84e7d0a5cd1e997e83e9d7f3 to your computer and use it in GitHub Desktop.
Save ch1c0t/9ac1e83b84e7d0a5cd1e997e83e9d7f3 to your computer and use it in GitHub Desktop.
require 'mail'
sender = ''
receiver = ''
password = ''
Mail.defaults do
delivery_method :smtp,
address: 'smtp.mail.yahoo.com',
port: 587,
user_name: sender,
password: password
end
Mail.deliver do
from sender
to receiver
subject 'Test mail'
body 'Some body'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment