Created
September 8, 2014 12:41
-
-
Save michalg-/ae3c747ec7fb3330bc7a 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
begin | |
smtp = Net::SMTP.new(@website_setting.smtp_server, @website_setting.smtp_port) | |
smtp.enable_starttls | |
smtp.start(@website_setting.smtp_domain, @website_setting.smtp_user_name, @website_setting.smtp_password, :plain) | |
rescue Net::SMTPAuthenticationError | |
#rescue here | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment