summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2017-10-02 17:29:42 +0200
committerHarald Eilertsen <haraldei@anduin.net>2017-10-02 17:29:42 +0200
commit6106c5b6ef4d9fe9804728471f94b0ef82da59cd (patch)
tree75af5937c6be6220a2857cc5b872788011f1a79d /lib
parent62ef2e73b879f09be1871573e59ea52e3c79372a (diff)
downloadnorsk-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.
Diffstat (limited to 'lib')
-rw-r--r--lib/registration.rb2
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