diff options
Diffstat (limited to 'lib/registration.rb')
-rw-r--r-- | lib/registration.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/registration.rb b/lib/registration.rb new file mode 100644 index 0000000..5a31ca0 --- /dev/null +++ b/lib/registration.rb @@ -0,0 +1,13 @@ +require 'band' +require 'mail' + +def send_registration_emails_for(band) + mail = Mail.new + mail.charset = 'UTF-8' + mail.to = 'haraldei@anduin.net' + mail.from = @band.contact.email + mail.subject = "Registrering av band #{@band.name} til Norsk Urskog" + mail.body = 'Neijassådu!' + + mail.deliver! +end |