-
-
Save frizop/227c23a3cc478c65ce1af50a1f8eeb62 to your computer and use it in GitHub Desktop.
caught exception
This file contains 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 | |
Net::SMTP.start(smtp_address, smtp_port) do |smtp| | |
smtp.send_message message, smtp_from_address, smtp_to_address | |
end | |
rescue Exception => e | |
Puppet.info("I wasn't able to make the email go") | |
ensure | |
smtp.finish | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment