summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/registration.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/registration.rb b/lib/registration.rb
index 5ace438..e576cb0 100644
--- a/lib/registration.rb
+++ b/lib/registration.rb
@@ -10,6 +10,9 @@ def send_registration_emails_for(band)
mail.subject = "Registrering av band #{@band.name} til Norsk Urskog"
mail.body = 'Neijassådu!'
+ if settings.environment != :test && settings.smtp
+ mail.delivery_method :smtp, :address => settings.smtp['address'], :port => settings.smtp['port']
+ end
mail.deliver!
end