1 # Selectricity: Voting Machinery for the Masses
2 # Copyright (C) 2007, 2008 Benjamin Mako Hill <mako@atdot.cc>
3 # Copyright (C) 2007 Massachusetts Institute of Technology
5 # This program is free software. Please see the COPYING file for
8 class VoterNotify < ActionMailer::Base
11 @subject = "[%s] Election Begun!" % voter.election.name
12 @recipients = voter.email
13 @from = MAIL_CONFIG[:from]
15 @body = { :voter => voter }
18 def reminder(voter_array)
19 @subject = "Selectricity Election Reminder!"
20 @recipients = voter_array[0].email
21 @from = MAIL_CONFIG[:from]
23 @body = { :voter_array => voter_array }