summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/registration.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/registration.rb b/lib/registration.rb
index 6fc4b9a..7d1e704 100644
--- a/lib/registration.rb
+++ b/lib/registration.rb
@@ -7,8 +7,8 @@ def send_registration_emails_for(band, pdf_url)
mail = Mail.new
mail.charset = 'UTF-8'
mail.to = settings.contact_email
- mail.from = @band.contact.email
- mail.subject = "Registrering av band #{@band.name} til Norsk Urskog"
+ mail.from = band.contact.email
+ 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.respond_to?(:smtp)