From ca7433c1f4c3336dc5d00bd0a07607e1500fbcd4 Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Mon, 2 Oct 2017 12:51:57 +0200 Subject: Use email from config for submitting form. --- lib/registration.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/registration.rb b/lib/registration.rb index bebe326..bfcf903 100644 --- a/lib/registration.rb +++ b/lib/registration.rb @@ -6,7 +6,7 @@ require 'mail' def send_registration_emails_for(band, pdf_url) mail = Mail.new mail.charset = 'UTF-8' - mail.to = 'haraldei@anduin.net' + mail.to = settings.contact_email 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 } -- cgit v1.2.3