diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2017-10-02 17:29:42 +0200 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2017-10-02 17:29:42 +0200 |
commit | 6106c5b6ef4d9fe9804728471f94b0ef82da59cd (patch) | |
tree | 75af5937c6be6220a2857cc5b872788011f1a79d | |
parent | 62ef2e73b879f09be1871573e59ea52e3c79372a (diff) | |
download | norsk-urskog-registrations-6106c5b6ef4d9fe9804728471f94b0ef82da59cd.tar.gz norsk-urskog-registrations-6106c5b6ef4d9fe9804728471f94b0ef82da59cd.tar.bz2 norsk-urskog-registrations-6106c5b6ef4d9fe9804728471f94b0ef82da59cd.zip |
Pass entire smtp config to Mail.deliver method.
We may need to set credentials or other config in some situations.
-rw-r--r-- | lib/registration.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/registration.rb b/lib/registration.rb index 4f2db17..b82cdb4 100644 --- a/lib/registration.rb +++ b/lib/registration.rb @@ -12,7 +12,7 @@ def send_registration_emails_for(band, pdf_url) mail.body = erb :registration_email, :layout => false, :locals => { :pdf_url => pdf_url } if settings.environment != :test && settings.respond_to?(:smtp) - mail.delivery_method :smtp, :address => settings.smtp['address'], :port => settings.smtp['port'] + mail.delivery_method :smtp, settings.smtp end mail.deliver! rescue Net::SMTPError => e |