diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2017-10-02 12:51:57 +0200 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2017-10-02 12:51:57 +0200 |
commit | ca7433c1f4c3336dc5d00bd0a07607e1500fbcd4 (patch) | |
tree | 5f0e926d37d47bc211ef90fb83aa39e465a1c24d /lib | |
parent | 102cd2260d35c67809ed458e3984208609e38c81 (diff) | |
download | norsk-urskog-registrations-ca7433c1f4c3336dc5d00bd0a07607e1500fbcd4.tar.gz norsk-urskog-registrations-ca7433c1f4c3336dc5d00bd0a07607e1500fbcd4.tar.bz2 norsk-urskog-registrations-ca7433c1f4c3336dc5d00bd0a07607e1500fbcd4.zip |
Use email from config for submitting form.
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 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 } |