<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -88,6 +88,8 @@ class Session:
 
   def __init__(self, cherrypy_session=None):
     self._user = users.get_current_user()
+    if self._user:
+      self._user.email_address = self._user.email()
     self._admin_p = users.is_current_user_admin()
     #if self.has_key('user_id'):
     #    self._user = do.User.selectById(self[&quot;user_id&quot;])</diff>
      <filename>base/session.py</filename>
    </modified>
    <modified>
      <diff>@@ -630,7 +630,13 @@ Your password: %s
 
       message = message_header + introductory_message + message_footer
 
-      mail.simple_send([voter.name],[voter.email],&quot;Helios&quot;,&quot;ben@adida.net&quot;,&quot;Your Vote in Election %s&quot; % election.name, message)
+      # send as the owner of the election
+      if user:
+        sender_email = user.email_address
+      else:
+        sender_email = &quot;ben@adida.net&quot;
+        
+      mail.simple_send([voter.name], [voter.email], &quot;Helios&quot;, sender_email,&quot;Voting in Election %s&quot; % election.name, message)
       
       last_id = voter.voter_id
       </diff>
      <filename>controllers/election.py</filename>
    </modified>
    <modified>
      <diff>@@ -10,14 +10,14 @@ indexes:
 # automatically uploaded to the admin console when you next deploy
 # your application using appcfg.py.
 
-# Used 25 times in query history.
+# Used 26 times in query history.
 - kind: ElectionExponent
   properties:
   - name: election
   - name: exponent
     direction: desc
 
-# Used 180 times in query history.
+# Used 190 times in query history.
 - kind: KeyShare
   properties:
   - name: election
@@ -43,7 +43,7 @@ indexes:
   - name: tallied_at
   - name: cast_id
 
-# Used 343 times in query history.
+# Used 359 times in query history.
 - kind: Voter
   properties:
   - name: election</diff>
      <filename>index.yaml</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>ed5e24696cbe0957b7c7ccd961afc39ea54664ad</id>
    </parent>
  </parents>
  <author>
    <name>Ben Adida</name>
    <email>ben@adida.net</email>
  </author>
  <url>http://github.com/benadida/helios/commit/174a0227ad6e5c35216248c2a5bed68adca1b23c</url>
  <id>174a0227ad6e5c35216248c2a5bed68adca1b23c</id>
  <committed-date>2008-09-18T09:51:29-07:00</committed-date>
  <authored-date>2008-09-18T09:51:29-07:00</authored-date>
  <message>changed sender of email to voters to be the election administrator</message>
  <tree>127e121694e4ad3d326c54ad395afeb02f1598ca</tree>
  <committer>
    <name>Ben Adida</name>
    <email>ben@adida.net</email>
  </committer>
</commit>
