Created
March 31, 2018 14:05
-
-
Save ch1c0t/9ac1e83b84e7d0a5cd1e997e83e9d7f3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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