class RaceDayMailer

Send membership data to SportsBase

Public Instance Methods

members_export(people) click to toggle source
# File app/models/race_day_mailer.rb, line 5
def members_export(people)
  # Not thread-safe. Won't work for multiple associations.
  ActionMailer::Base.default_url_options[:host] = RacingAssociation.current.rails_host

  subject    "#{RacingAssociation.current.name} Members Export"
  recipients 'dcowley@sportsbaseonline.com'
  from       "scott.willson@gmail.com"

  body "See attached file"

  @people = people
end