sdi/events.py
author nishanth
Sun, 06 Jun 2010 01:03:56 +0530
branchanoop
changeset 53 b226923fbf64
child 54 7515c2d1f5c5
permissions -rw-r--r--
added send_mail after registration
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
53
b226923fbf64 added send_mail after registration
nishanth
parents:
diff changeset
     1
from django.core.mail import send_mail
b226923fbf64 added send_mail after registration
nishanth
parents:
diff changeset
     2
b226923fbf64 added send_mail after registration
nishanth
parents:
diff changeset
     3
def send_reg_complete_mail(email, fist_name, last_name):
b226923fbf64 added send_mail after registration
nishanth
parents:
diff changeset
     4
    """ send registration complete email to the registered user.
b226923fbf64 added send_mail after registration
nishanth
parents:
diff changeset
     5
    """
b226923fbf64 added send_mail after registration
nishanth
parents:
diff changeset
     6
b226923fbf64 added send_mail after registration
nishanth
parents:
diff changeset
     7
    subject = "Sage Days India 25 - Registration"
b226923fbf64 added send_mail after registration
nishanth
parents:
diff changeset
     8
b226923fbf64 added send_mail after registration
nishanth
parents:
diff changeset
     9
    message = """
b226923fbf64 added send_mail after registration
nishanth
parents:
diff changeset
    10
    Dear %s %s,
b226923fbf64 added send_mail after registration
nishanth
parents:
diff changeset
    11
b226923fbf64 added send_mail after registration
nishanth
parents:
diff changeset
    12
    Thank you for registering on Sage Days 25, India. Since we have limited number of seats we will be mailing you the status of your registration shortly.
b226923fbf64 added send_mail after registration
nishanth
parents:
diff changeset
    13
    Meanwhile you may join the Sage Days mailing list/group at [http://groups.google.com/group/sagedays25].
b226923fbf64 added send_mail after registration
nishanth
parents:
diff changeset
    14
b226923fbf64 added send_mail after registration
nishanth
parents:
diff changeset
    15
    Registration Fee:
b226923fbf64 added send_mail after registration
nishanth
parents:
diff changeset
    16
    There is a registration fee of Rs.200/- and it can be paid on reporting at the conference.
b226923fbf64 added send_mail after registration
nishanth
parents:
diff changeset
    17
b226923fbf64 added send_mail after registration
nishanth
parents:
diff changeset
    18
    Accommodation:
b226923fbf64 added send_mail after registration
nishanth
parents:
diff changeset
    19
    The accommodation for delegates is limited and hence you shall be notified on the status of your accommodation(if required) soon.
b226923fbf64 added send_mail after registration
nishanth
parents:
diff changeset
    20
b226923fbf64 added send_mail after registration
nishanth
parents:
diff changeset
    21
    Queries:
b226923fbf64 added send_mail after registration
nishanth
parents:
diff changeset
    22
    Feel free to contact us at sagedays@fossee.in for any queries.
b226923fbf64 added send_mail after registration
nishanth
parents:
diff changeset
    23
b226923fbf64 added send_mail after registration
nishanth
parents:
diff changeset
    24
    Thanking you,
b226923fbf64 added send_mail after registration
nishanth
parents:
diff changeset
    25
b226923fbf64 added send_mail after registration
nishanth
parents:
diff changeset
    26
    Sage Days India Team,
b226923fbf64 added send_mail after registration
nishanth
parents:
diff changeset
    27
    FOSSEE, IIT Bombay.
b226923fbf64 added send_mail after registration
nishanth
parents:
diff changeset
    28
    """%(first_name.title(), last_name.title())
b226923fbf64 added send_mail after registration
nishanth
parents:
diff changeset
    29
b226923fbf64 added send_mail after registration
nishanth
parents:
diff changeset
    30
    send_mail(subject, message, "sagedays@fossee.in", [email])
b226923fbf64 added send_mail after registration
nishanth
parents:
diff changeset
    31