system_mailer.rb 271 B

123456789
  1. class SystemMailer < ActionMailer::Base
  2. default :from => ENV['EMAIL_FROM_ADDRESS'] || 'you@example.com'
  3. def send_message(options)
  4. @groups = options[:groups]
  5. @headline = options[:headline]
  6. mail :to => options[:to], :subject => options[:subject]
  7. end
  8. end