diff -r c390adb66ba6 -r a7cb2566be42 scripts/mails.py --- a/scripts/mails.py Sat Dec 05 09:39:02 2009 +0530 +++ b/scripts/mails.py Sat Dec 05 10:01:38 2009 +0530 @@ -11,6 +11,7 @@ from django.template import loader from project.kiwipycon.talk.models import Talk +from django.contrib.auth.models import User def speaker_accepted(): @@ -31,6 +32,7 @@ talk.speaker.email_user(subject=subject, message=message, from_email='admin@scipy.in') + def speaker_sponsorship(): """Sends a mail to each speaker whose talk has been accepted informing them about the their sponsorship. @@ -47,4 +49,22 @@ 'title': talk.title}) talk.speaker.email_user(subject=subject, message=message, - from_email='admin@scipy.in') \ No newline at end of file + from_email='admin@scipy.in') + + +def delegate_remainder(): + """Sends a mail to each speaker whose talk has been accepted + informing them about the their sponsorship. + """ + + regs = User.objects.all() + + template = 'notifications/remainder_mail.html' + + for reg in regs: + subject = 'SciPy.in 2009: Remainder and details' + message = loader.render_to_string( + template, dictionary={'name': reg.user.username}) + + reg.user.email_user(subject=subject, message=message, + from_email='admin@scipy.in') \ No newline at end of file