sdi/events.py
author nishanth
Sun, 06 Jun 2010 01:31:03 +0530
branchanoop
changeset 55 1091f42e4a41
parent 54 7515c2d1f5c5
child 56 7dfacad8adee
permissions -rw-r--r--
updated the whitespace
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
54
7515c2d1f5c5 fixed a typo error
nishanth
parents: 53
diff changeset
     3
def send_reg_complete_mail(email, first_name, last_name):
53
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 = """
55
1091f42e4a41 updated the whitespace
nishanth
parents: 54
diff changeset
    10
Dear %s %s,
53
b226923fbf64 added send_mail after registration
nishanth
parents:
diff changeset
    11
55
1091f42e4a41 updated the whitespace
nishanth
parents: 54
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.
1091f42e4a41 updated the whitespace
nishanth
parents: 54
diff changeset
    13
Meanwhile you may join the Sage Days mailing list/group at [http://groups.google.com/group/sagedays25].
53
b226923fbf64 added send_mail after registration
nishanth
parents:
diff changeset
    14
55
1091f42e4a41 updated the whitespace
nishanth
parents: 54
diff changeset
    15
Registration Fee:
1091f42e4a41 updated the whitespace
nishanth
parents: 54
diff changeset
    16
There is a registration fee of Rs.200/- and it can be paid on reporting at the conference.
53
b226923fbf64 added send_mail after registration
nishanth
parents:
diff changeset
    17
55
1091f42e4a41 updated the whitespace
nishanth
parents: 54
diff changeset
    18
Accommodation:
1091f42e4a41 updated the whitespace
nishanth
parents: 54
diff changeset
    19
The accommodation for delegates is limited and hence you shall be notified on the status of your accommodation(if required) soon.
53
b226923fbf64 added send_mail after registration
nishanth
parents:
diff changeset
    20
55
1091f42e4a41 updated the whitespace
nishanth
parents: 54
diff changeset
    21
Queries:
1091f42e4a41 updated the whitespace
nishanth
parents: 54
diff changeset
    22
Feel free to contact us at sagedays@fossee.in for any queries.
53
b226923fbf64 added send_mail after registration
nishanth
parents:
diff changeset
    23
55
1091f42e4a41 updated the whitespace
nishanth
parents: 54
diff changeset
    24
Thanking you,
53
b226923fbf64 added send_mail after registration
nishanth
parents:
diff changeset
    25
55
1091f42e4a41 updated the whitespace
nishanth
parents: 54
diff changeset
    26
Sage Days India Team,
1091f42e4a41 updated the whitespace
nishanth
parents: 54
diff changeset
    27
FOSSEE, IIT Bombay.
53
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