summaryrefslogtreecommitdiffstats
path: root/lib/registration.rb
blob: 5a31ca00425dd292143cf2ea1cc9e1a1152df02b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
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