]> projects.mako.cc - selectricity/blob - app/models/voter_notify.rb
added di logo to thanks page
[selectricity] / app / models / voter_notify.rb
1 class VoterNotify < ActionMailer::Base
2
3   def votestart(voter)
4     @subject = "[%s] Election Begun!" % voter.election.name
5     @recipients = voter.email
6     @from = MAIL_CONFIG[:from]
7     @sent_on = Time.now
8     @body = { :voter => voter }
9   end
10
11   def reminder(voter_array)
12     @subject = "Selectricity Election Reminder!"
13     @recipients = voter_array[0].email
14     @from = MAIL_CONFIG[:from]
15     @sent_on = Time.now
16     @body = { :voter_array => voter_array }
17   end
18
19 end

Benjamin Mako Hill || Want to submit a patch?