diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2015-11-21 17:44:31 +0100 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2015-11-21 17:53:53 +0100 |
commit | f37dedaca58ec0a3673ed7f10bf8f5072455680b (patch) | |
tree | 90234af0938773288584f8b3218135f49496520b /lib/registration.rb | |
parent | 732a5b9c15c4b8e96d7cd3d5fb0e8d6463dc8928 (diff) | |
download | norsk-urskog-registrations-f37dedaca58ec0a3673ed7f10bf8f5072455680b.tar.gz norsk-urskog-registrations-f37dedaca58ec0a3673ed7f10bf8f5072455680b.tar.bz2 norsk-urskog-registrations-f37dedaca58ec0a3673ed7f10bf8f5072455680b.zip |
revert back to form if email delivery fails.
Diffstat (limited to 'lib/registration.rb')
-rw-r--r-- | lib/registration.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/registration.rb b/lib/registration.rb index e38f0fe..6afe8b6 100644 --- a/lib/registration.rb +++ b/lib/registration.rb @@ -14,6 +14,8 @@ def send_registration_emails_for(band, pdf_url) mail.delivery_method :smtp, :address => settings.smtp['address'], :port => settings.smtp['port'] end mail.deliver! +rescue Net::SMTPError => e + band.errors << e.message end def generate_pdf_for(band, filename) |