scripts/mails.py
author Madhusudan.C.S <madhusudancs@gmail.com>
Wed, 21 Jul 2010 03:27:56 +0530
changeset 141 3a325a865252
parent 96 178b89a3ca4f
child 278 2ea8af6851c9
permissions -rw-r--r--
Added get_full_name to event and used in required templates.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
42
efacdf0cd268 Added template which sends the accepted speakes a mail.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     1
"""Helper script to send emails to the users to remind of the
efacdf0cd268 Added template which sends the accepted speakes a mail.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     2
registration and inform them to complete their profiles and stuff.
efacdf0cd268 Added template which sends the accepted speakes a mail.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     3
"""
efacdf0cd268 Added template which sends the accepted speakes a mail.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     4
efacdf0cd268 Added template which sends the accepted speakes a mail.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     5
efacdf0cd268 Added template which sends the accepted speakes a mail.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     6
__authors__ = [
efacdf0cd268 Added template which sends the accepted speakes a mail.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     7
  '"Madhusudan.C.S" <madhusudancs@gmail.com>',
efacdf0cd268 Added template which sends the accepted speakes a mail.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     8
  ]
efacdf0cd268 Added template which sends the accepted speakes a mail.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     9
efacdf0cd268 Added template which sends the accepted speakes a mail.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    10
efacdf0cd268 Added template which sends the accepted speakes a mail.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    11
from django.template import loader
48
bb835205604b Summary of individual events mail to all users.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 47
diff changeset
    12
from django.contrib.auth.models import User
42
efacdf0cd268 Added template which sends the accepted speakes a mail.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    13
96
178b89a3ca4f Removed unwanted files and made more changes to make SciPyCon a clean app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 82
diff changeset
    14
from project.scipycon.registration.models import Registration
178b89a3ca4f Removed unwanted files and made more changes to make SciPyCon a clean app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 82
diff changeset
    15
from project.scipycon.talk.models import Talk
42
efacdf0cd268 Added template which sends the accepted speakes a mail.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    16
efacdf0cd268 Added template which sends the accepted speakes a mail.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    17
efacdf0cd268 Added template which sends the accepted speakes a mail.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    18
def speaker_accepted():
efacdf0cd268 Added template which sends the accepted speakes a mail.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    19
    """Sends a mail to each speaker whose talk has been accepted
efacdf0cd268 Added template which sends the accepted speakes a mail.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    20
    informing them about the same.
efacdf0cd268 Added template which sends the accepted speakes a mail.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    21
    """
efacdf0cd268 Added template which sends the accepted speakes a mail.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    22
efacdf0cd268 Added template which sends the accepted speakes a mail.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    23
    talks = Talk.objects.all()
efacdf0cd268 Added template which sends the accepted speakes a mail.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    24
efacdf0cd268 Added template which sends the accepted speakes a mail.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    25
    template = 'notifications/speaker_accepted_mail.html'
efacdf0cd268 Added template which sends the accepted speakes a mail.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    26
efacdf0cd268 Added template which sends the accepted speakes a mail.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    27
    for talk in talks:
efacdf0cd268 Added template which sends the accepted speakes a mail.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    28
        subject = 'Your talk has been selected for SciPy.in 2009!'
efacdf0cd268 Added template which sends the accepted speakes a mail.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    29
        message = loader.render_to_string(
efacdf0cd268 Added template which sends the accepted speakes a mail.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    30
            template, dictionary={'name': talk.speaker.username,
efacdf0cd268 Added template which sends the accepted speakes a mail.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    31
                                  'title': talk.title})
efacdf0cd268 Added template which sends the accepted speakes a mail.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    32
efacdf0cd268 Added template which sends the accepted speakes a mail.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    33
        talk.speaker.email_user(subject=subject, message=message,
efacdf0cd268 Added template which sends the accepted speakes a mail.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    34
                                from_email='admin@scipy.in')
44
c390adb66ba6 Sponsorship for speakers mail.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 42
diff changeset
    35
45
a7cb2566be42 Delegate remainder mail.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 44
diff changeset
    36
44
c390adb66ba6 Sponsorship for speakers mail.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 42
diff changeset
    37
def speaker_sponsorship():
c390adb66ba6 Sponsorship for speakers mail.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 42
diff changeset
    38
    """Sends a mail to each speaker whose talk has been accepted
c390adb66ba6 Sponsorship for speakers mail.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 42
diff changeset
    39
    informing them about the their sponsorship.
c390adb66ba6 Sponsorship for speakers mail.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 42
diff changeset
    40
    """
c390adb66ba6 Sponsorship for speakers mail.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 42
diff changeset
    41
c390adb66ba6 Sponsorship for speakers mail.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 42
diff changeset
    42
    talks = Talk.objects.all()
c390adb66ba6 Sponsorship for speakers mail.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 42
diff changeset
    43
c390adb66ba6 Sponsorship for speakers mail.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 42
diff changeset
    44
    template = 'notifications/speaker_sponsorship_mail.html'
c390adb66ba6 Sponsorship for speakers mail.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 42
diff changeset
    45
c390adb66ba6 Sponsorship for speakers mail.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 42
diff changeset
    46
    for talk in talks:
c390adb66ba6 Sponsorship for speakers mail.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 42
diff changeset
    47
        subject = 'Details regarding your travel and accommodation for SciPy.in 2009'
c390adb66ba6 Sponsorship for speakers mail.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 42
diff changeset
    48
        message = loader.render_to_string(
c390adb66ba6 Sponsorship for speakers mail.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 42
diff changeset
    49
            template, dictionary={'name': talk.speaker.username,
c390adb66ba6 Sponsorship for speakers mail.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 42
diff changeset
    50
                                  'title': talk.title})
c390adb66ba6 Sponsorship for speakers mail.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 42
diff changeset
    51
c390adb66ba6 Sponsorship for speakers mail.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 42
diff changeset
    52
        talk.speaker.email_user(subject=subject, message=message,
45
a7cb2566be42 Delegate remainder mail.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 44
diff changeset
    53
                                from_email='admin@scipy.in')
a7cb2566be42 Delegate remainder mail.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 44
diff changeset
    54
a7cb2566be42 Delegate remainder mail.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 44
diff changeset
    55
a7cb2566be42 Delegate remainder mail.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 44
diff changeset
    56
def delegate_remainder():
a7cb2566be42 Delegate remainder mail.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 44
diff changeset
    57
    """Sends a mail to each speaker whose talk has been accepted
a7cb2566be42 Delegate remainder mail.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 44
diff changeset
    58
    informing them about the their sponsorship.
a7cb2566be42 Delegate remainder mail.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 44
diff changeset
    59
    """
a7cb2566be42 Delegate remainder mail.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 44
diff changeset
    60
a7cb2566be42 Delegate remainder mail.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 44
diff changeset
    61
    regs = User.objects.all()
a7cb2566be42 Delegate remainder mail.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 44
diff changeset
    62
47
668e7e0881b6 Made some typo fixes to delegate reminder mail.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 46
diff changeset
    63
    template = 'notifications/reminder_mail.html'
45
a7cb2566be42 Delegate remainder mail.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 44
diff changeset
    64
a7cb2566be42 Delegate remainder mail.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 44
diff changeset
    65
    for reg in regs:
a7cb2566be42 Delegate remainder mail.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 44
diff changeset
    66
        subject = 'SciPy.in 2009: Remainder and details'
a7cb2566be42 Delegate remainder mail.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 44
diff changeset
    67
        message = loader.render_to_string(
47
668e7e0881b6 Made some typo fixes to delegate reminder mail.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 46
diff changeset
    68
            template, dictionary={'name': reg.username})
45
a7cb2566be42 Delegate remainder mail.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 44
diff changeset
    69
47
668e7e0881b6 Made some typo fixes to delegate reminder mail.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 46
diff changeset
    70
        reg.email_user(subject=subject, message=message,
48
bb835205604b Summary of individual events mail to all users.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 47
diff changeset
    71
                       from_email='madhusudancs@gmail.com')
bb835205604b Summary of individual events mail to all users.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 47
diff changeset
    72
bb835205604b Summary of individual events mail to all users.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 47
diff changeset
    73
bb835205604b Summary of individual events mail to all users.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 47
diff changeset
    74
def delegate_about_event():
bb835205604b Summary of individual events mail to all users.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 47
diff changeset
    75
    """Sends a mail to each confirmed delegate informing
bb835205604b Summary of individual events mail to all users.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 47
diff changeset
    76
    them about the the individual events.
bb835205604b Summary of individual events mail to all users.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 47
diff changeset
    77
    """
bb835205604b Summary of individual events mail to all users.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 47
diff changeset
    78
bb835205604b Summary of individual events mail to all users.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 47
diff changeset
    79
    regs = Registration.objects.all()
bb835205604b Summary of individual events mail to all users.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 47
diff changeset
    80
bb835205604b Summary of individual events mail to all users.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 47
diff changeset
    81
    template = 'notifications/sprints_about_mail.html'
bb835205604b Summary of individual events mail to all users.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 47
diff changeset
    82
bb835205604b Summary of individual events mail to all users.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 47
diff changeset
    83
    for reg in regs:
bb835205604b Summary of individual events mail to all users.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 47
diff changeset
    84
        subject = 'SciPy.in 2009: Details of the individual events'
bb835205604b Summary of individual events mail to all users.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 47
diff changeset
    85
        message = loader.render_to_string(
bb835205604b Summary of individual events mail to all users.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 47
diff changeset
    86
            template, dictionary={'name': reg.registrant.username})
bb835205604b Summary of individual events mail to all users.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 47
diff changeset
    87
bb835205604b Summary of individual events mail to all users.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 47
diff changeset
    88
        reg.registrant.email_user(subject=subject, message=message,
bb835205604b Summary of individual events mail to all users.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 47
diff changeset
    89
                                  from_email='madhusudancs@gmail.com')
bb835205604b Summary of individual events mail to all users.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 47
diff changeset
    90
bb835205604b Summary of individual events mail to all users.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 47
diff changeset
    91
61
959ec5eaafb1 Added last day mail.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 48
diff changeset
    92
def delegate_last_day():
959ec5eaafb1 Added last day mail.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 48
diff changeset
    93
    """Sends a mail to each confirmed delegate informing
959ec5eaafb1 Added last day mail.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 48
diff changeset
    94
    them about the final details.
959ec5eaafb1 Added last day mail.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 48
diff changeset
    95
    """
959ec5eaafb1 Added last day mail.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 48
diff changeset
    96
959ec5eaafb1 Added last day mail.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 48
diff changeset
    97
    regs = Registration.objects.all()
959ec5eaafb1 Added last day mail.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 48
diff changeset
    98
959ec5eaafb1 Added last day mail.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 48
diff changeset
    99
    template = 'notifications/last_day_mail.html'
959ec5eaafb1 Added last day mail.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 48
diff changeset
   100
959ec5eaafb1 Added last day mail.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 48
diff changeset
   101
    for reg in regs:
959ec5eaafb1 Added last day mail.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 48
diff changeset
   102
        subject = 'SciPy.in 2009: Schedule and other details'
959ec5eaafb1 Added last day mail.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 48
diff changeset
   103
        message = loader.render_to_string(
959ec5eaafb1 Added last day mail.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 48
diff changeset
   104
            template, dictionary={'name': reg.registrant.username})
959ec5eaafb1 Added last day mail.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 48
diff changeset
   105
959ec5eaafb1 Added last day mail.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 48
diff changeset
   106
        reg.registrant.email_user(subject=subject, message=message,
959ec5eaafb1 Added last day mail.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 48
diff changeset
   107
                                  from_email='madhusudancs@gmail.com')
959ec5eaafb1 Added last day mail.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 48
diff changeset
   108
959ec5eaafb1 Added last day mail.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 48
diff changeset
   109
48
bb835205604b Summary of individual events mail to all users.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 47
diff changeset
   110
def speaker_confirmation():
bb835205604b Summary of individual events mail to all users.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 47
diff changeset
   111
    """Sends a mail to each speaker asking for confirmation.
bb835205604b Summary of individual events mail to all users.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 47
diff changeset
   112
    """
bb835205604b Summary of individual events mail to all users.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 47
diff changeset
   113
bb835205604b Summary of individual events mail to all users.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 47
diff changeset
   114
    talks = Talk.objects.all()
bb835205604b Summary of individual events mail to all users.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 47
diff changeset
   115
bb835205604b Summary of individual events mail to all users.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 47
diff changeset
   116
    template = 'notifications/speaker_confirmation_mail.html'
bb835205604b Summary of individual events mail to all users.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 47
diff changeset
   117
bb835205604b Summary of individual events mail to all users.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 47
diff changeset
   118
    for talk in talks:
bb835205604b Summary of individual events mail to all users.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 47
diff changeset
   119
        subject = 'SciPy.in 2009: Requesting for confirmation of your talk'
bb835205604b Summary of individual events mail to all users.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 47
diff changeset
   120
        message = loader.render_to_string(
bb835205604b Summary of individual events mail to all users.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 47
diff changeset
   121
            template, dictionary={'name': talk.speaker.username,
bb835205604b Summary of individual events mail to all users.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 47
diff changeset
   122
                                  'title': talk.title})
bb835205604b Summary of individual events mail to all users.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 47
diff changeset
   123
bb835205604b Summary of individual events mail to all users.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 47
diff changeset
   124
        talk.speaker.email_user(subject=subject, message=message,
bb835205604b Summary of individual events mail to all users.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 47
diff changeset
   125
                                from_email='admin@scipy.in')
82
a123369b0901 Proceedings details mail.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 61
diff changeset
   126
a123369b0901 Proceedings details mail.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 61
diff changeset
   127
def proceedings_detail():
a123369b0901 Proceedings details mail.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 61
diff changeset
   128
    """Sends a mail to each speaker informing them about proceedings
a123369b0901 Proceedings details mail.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 61
diff changeset
   129
    """
a123369b0901 Proceedings details mail.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 61
diff changeset
   130
a123369b0901 Proceedings details mail.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 61
diff changeset
   131
    talks = Talk.objects.all()
a123369b0901 Proceedings details mail.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 61
diff changeset
   132
a123369b0901 Proceedings details mail.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 61
diff changeset
   133
    template = 'notifications/proceedings_detail_mail.html'
a123369b0901 Proceedings details mail.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 61
diff changeset
   134
a123369b0901 Proceedings details mail.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 61
diff changeset
   135
    for talk in talks:
a123369b0901 Proceedings details mail.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 61
diff changeset
   136
        subject = 'SciPy.in 2009 Proceedings'
a123369b0901 Proceedings details mail.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 61
diff changeset
   137
        message = loader.render_to_string(
a123369b0901 Proceedings details mail.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 61
diff changeset
   138
            template, dictionary={'name': talk.speaker.username})
a123369b0901 Proceedings details mail.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 61
diff changeset
   139
a123369b0901 Proceedings details mail.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 61
diff changeset
   140
        talk.speaker.email_user(subject=subject, message=message,
a123369b0901 Proceedings details mail.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 61
diff changeset
   141
                                from_email='admin@scipy.in')