diff options
Diffstat (limited to 'lib')
-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 9053ade..16be55a 100644 --- a/lib/registration.rb +++ b/lib/registration.rb @@ -10,7 +10,7 @@ def send_registration_emails_for(band, pdf_url) mail.subject = "Registrering av band #{@band.name} til Norsk Urskog" mail.body = erb :registration_email, :layout => false, :locals => { :pdf_url => pdf_url } - if settings.environment != :test && settings.smtp + if settings.environment != :test && settings.respond_to?(:smtp) mail.delivery_method :smtp, :address => settings.smtp['address'], :port => settings.smtp['port'] end mail.deliver! |