diff options
author | Madhusudan.C.S | 2009-12-12 02:44:13 +0530 |
---|---|---|
committer | Madhusudan.C.S | 2009-12-12 02:44:13 +0530 |
commit | 897b022077ef4d0ab0f62e0807763f9ec5c88f30 (patch) | |
tree | a794a62cb7b9054a9d15c165865bf1f9e87764df /scripts | |
parent | c2b50c914986baf025eeecce8a66493c8bac2b61 (diff) | |
download | scipycon-897b022077ef4d0ab0f62e0807763f9ec5c88f30.tar.gz scipycon-897b022077ef4d0ab0f62e0807763f9ec5c88f30.tar.bz2 scipycon-897b022077ef4d0ab0f62e0807763f9ec5c88f30.zip |
Added last day mail.
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/mails.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/scripts/mails.py b/scripts/mails.py index bbb85e9..1634b51 100644 --- a/scripts/mails.py +++ b/scripts/mails.py @@ -89,6 +89,24 @@ def delegate_about_event(): from_email='madhusudancs@gmail.com') +def delegate_last_day(): + """Sends a mail to each confirmed delegate informing + them about the final details. + """ + + regs = Registration.objects.all() + + template = 'notifications/last_day_mail.html' + + for reg in regs: + subject = 'SciPy.in 2009: Schedule and other details' + message = loader.render_to_string( + template, dictionary={'name': reg.registrant.username}) + + reg.registrant.email_user(subject=subject, message=message, + from_email='madhusudancs@gmail.com') + + def speaker_confirmation(): """Sends a mail to each speaker asking for confirmation. """ |