author | anoop |
Thu, 19 Aug 2010 18:20:27 +0530 | |
branch | anoop |
changeset 231 | 97290cc22eb5 |
parent 212 | 5c71757e7e0e |
child 246 | 3a32df4b3171 |
permissions | -rw-r--r-- |
53 | 1 |
from django.core.mail import send_mail |
2 |
||
54 | 3 |
def send_reg_complete_mail(email, first_name, last_name): |
53 | 4 |
""" send registration complete email to the registered user. |
5 |
""" |
|
6 |
||
118
6c3602582f9f
included the send_mail and created the corresponding event in events
nishanth
parents:
73
diff
changeset
|
7 |
subject = "Sage Days 25, India - Registration" |
53 | 8 |
|
9 |
message = """ |
|
55 | 10 |
Dear %s %s, |
53 | 11 |
|
55 | 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. |
13 |
Meanwhile you may join the Sage Days mailing list/group at [http://groups.google.com/group/sagedays25]. |
|
53 | 14 |
|
55 | 15 |
Registration Fee: |
16 |
There is a registration fee of Rs.200/- and it can be paid on reporting at the conference. |
|
53 | 17 |
|
55 | 18 |
Accommodation: |
19 |
The accommodation for delegates is limited and hence you shall be notified on the status of your accommodation(if required) soon. |
|
53 | 20 |
|
55 | 21 |
Queries: |
22 |
Feel free to contact us at sagedays@fossee.in for any queries. |
|
53 | 23 |
|
73 | 24 |
If you did not register for Sage Days 25, please ignore this mail and report the incident to sagedays@fossee.in |
25 |
||
55 | 26 |
Thanking you, |
53 | 27 |
|
55 | 28 |
Sage Days India Team, |
29 |
FOSSEE, IIT Bombay. |
|
53 | 30 |
"""%(first_name.title(), last_name.title()) |
31 |
||
32 |
send_mail(subject, message, "sagedays@fossee.in", [email]) |
|
33 |
||
163 | 34 |
def send_wsp_ptc_confirm(user): |
162
27dd4494e7b4
created the mail event and added it in view for send_wsp_ptc
nishanhth
parents:
148
diff
changeset
|
35 |
""" send a mail telling a worksho has been scheduled. |
27dd4494e7b4
created the mail event and added it in view for send_wsp_ptc
nishanhth
parents:
148
diff
changeset
|
36 |
""" |
27dd4494e7b4
created the mail event and added it in view for send_wsp_ptc
nishanhth
parents:
148
diff
changeset
|
37 |
|
27dd4494e7b4
created the mail event and added it in view for send_wsp_ptc
nishanhth
parents:
148
diff
changeset
|
38 |
subject = "Sage Days 25, India - Python Workshop" |
27dd4494e7b4
created the mail event and added it in view for send_wsp_ptc
nishanhth
parents:
148
diff
changeset
|
39 |
|
193 | 40 |
subject_cancellation = "Sage Days 25, India - Cancellation of Python Workshop" |
41 |
||
42 |
message_cancellation = """ |
|
43 |
Dear %s %s, |
|
44 |
||
45 |
We are sorry to announce that we are cancelling the one day Pre-Sage Days |
|
46 |
workshop which was scheduled on July 31st. |
|
47 |
||
48 |
It has been cancelled due to low response from the people who requested |
|
49 |
for the workshop. |
|
50 |
||
51 |
Thanking you, |
|
52 |
||
53 |
Sage Days India Team, |
|
54 |
FOSSEE, IIT Bombay. |
|
195 | 55 |
"""%(user.first_name.title(), user.last_name.title()) |
193 | 56 |
|
162
27dd4494e7b4
created the mail event and added it in view for send_wsp_ptc
nishanhth
parents:
148
diff
changeset
|
57 |
message = """ |
27dd4494e7b4
created the mail event and added it in view for send_wsp_ptc
nishanhth
parents:
148
diff
changeset
|
58 |
Dear %s %s, |
27dd4494e7b4
created the mail event and added it in view for send_wsp_ptc
nishanhth
parents:
148
diff
changeset
|
59 |
|
188
a537559a96c9
updated the matter for pre-Sage Days python workshop.
anoop
parents:
187
diff
changeset
|
60 |
Till now, only one person has confirmed to attend pre-"Sage Days" Python workshop. If there is very little interest for the workshop, there is no point in conducting a workshop. We will hence be forced to annul the workshop. So please confirm your participation in the workshop by 29th July, 2010 afternoon. |
a537559a96c9
updated the matter for pre-Sage Days python workshop.
anoop
parents:
187
diff
changeset
|
61 |
|
165 | 62 |
We are conducting a one day workshop for people who are new to Python. |
170 | 63 |
Although Python is not a pre requisite for Sage Days, this workshop aims at getting people started with Python so that they can make most out of Sage Days 25. |
164 | 64 |
|
65 |
Date: 31 July, 2010 |
|
66 |
Duration: 9:00 AM - 6:00 PM |
|
67 |
Venue: CFD Lab, Aero Annex, Aerospace Department, IIT Bombay |
|
68 |
Pre Requisites: Fresh and Open mind |
|
69 |
||
70 |
We shall be giving laptops to people who do not have. But they will be given on First Come First Serve basis and are very limited in number. Hence you are advised to bring your own laptop. http://fossee.in/installation-how-to has the instructions on installing the software that is used in the workshop. |
|
71 |
||
171
27c108711186
updated the mail to say no lunch and put link for details on workshop
nishanth
parents:
170
diff
changeset
|
72 |
NOTE: Participants have to make their own lunch arrangements. |
162
27dd4494e7b4
created the mail event and added it in view for send_wsp_ptc
nishanhth
parents:
148
diff
changeset
|
73 |
|
27dd4494e7b4
created the mail event and added it in view for send_wsp_ptc
nishanhth
parents:
148
diff
changeset
|
74 |
Please click the link below or paste it in a browser to confirm your participation. |
27dd4494e7b4
created the mail event and added it in view for send_wsp_ptc
nishanhth
parents:
148
diff
changeset
|
75 |
http://fossee.in/sage_days/registration/cnf_wsp_ptc/%s?email=%s |
27dd4494e7b4
created the mail event and added it in view for send_wsp_ptc
nishanhth
parents:
148
diff
changeset
|
76 |
|
27dd4494e7b4
created the mail event and added it in view for send_wsp_ptc
nishanhth
parents:
148
diff
changeset
|
77 |
Please ignore this mail if you are not likely to attend the workshop. |
27dd4494e7b4
created the mail event and added it in view for send_wsp_ptc
nishanhth
parents:
148
diff
changeset
|
78 |
|
165 | 79 |
PS: If anyone who has not registered for Sage Days or not requested a workshop but is interested in attending, drop a mail to sagedays@fossee.in and we will be happy to have them also at the workshop. |
164 | 80 |
|
171
27c108711186
updated the mail to say no lunch and put link for details on workshop
nishanth
parents:
170
diff
changeset
|
81 |
Visit http://fossee.in/sage_days/pre_sage_days_workshop for more details on the workshop. |
27c108711186
updated the mail to say no lunch and put link for details on workshop
nishanth
parents:
170
diff
changeset
|
82 |
|
162
27dd4494e7b4
created the mail event and added it in view for send_wsp_ptc
nishanhth
parents:
148
diff
changeset
|
83 |
Thanking you, |
27dd4494e7b4
created the mail event and added it in view for send_wsp_ptc
nishanhth
parents:
148
diff
changeset
|
84 |
|
27dd4494e7b4
created the mail event and added it in view for send_wsp_ptc
nishanhth
parents:
148
diff
changeset
|
85 |
Sage Days India Team, |
27dd4494e7b4
created the mail event and added it in view for send_wsp_ptc
nishanhth
parents:
148
diff
changeset
|
86 |
FOSSEE, IIT Bombay. |
27dd4494e7b4
created the mail event and added it in view for send_wsp_ptc
nishanhth
parents:
148
diff
changeset
|
87 |
"""%(user.first_name.title(), user.last_name.title(), user.id, user.email) |
27dd4494e7b4
created the mail event and added it in view for send_wsp_ptc
nishanhth
parents:
148
diff
changeset
|
88 |
|
193 | 89 |
send_mail(subject_cancellation, message_cancellation, "sagedays@fossee.in", [user.email]) |
162
27dd4494e7b4
created the mail event and added it in view for send_wsp_ptc
nishanhth
parents:
148
diff
changeset
|
90 |
|
27dd4494e7b4
created the mail event and added it in view for send_wsp_ptc
nishanhth
parents:
148
diff
changeset
|
91 |
|
137
02a5304a2c5f
fixed a typo and corrected at various places accordingly
nishanth
parents:
119
diff
changeset
|
92 |
def send_sgd_ptc_confirm(user): |
118
6c3602582f9f
included the send_mail and created the corresponding event in events
nishanth
parents:
73
diff
changeset
|
93 |
""" send a mail telling that you have been selected to attend sage days. |
6c3602582f9f
included the send_mail and created the corresponding event in events
nishanth
parents:
73
diff
changeset
|
94 |
""" |
6c3602582f9f
included the send_mail and created the corresponding event in events
nishanth
parents:
73
diff
changeset
|
95 |
|
6c3602582f9f
included the send_mail and created the corresponding event in events
nishanth
parents:
73
diff
changeset
|
96 |
subject = "Sage Days 25, India - Selected for participation" |
6c3602582f9f
included the send_mail and created the corresponding event in events
nishanth
parents:
73
diff
changeset
|
97 |
|
6c3602582f9f
included the send_mail and created the corresponding event in events
nishanth
parents:
73
diff
changeset
|
98 |
message = """ |
6c3602582f9f
included the send_mail and created the corresponding event in events
nishanth
parents:
73
diff
changeset
|
99 |
Dear %s %s, |
6c3602582f9f
included the send_mail and created the corresponding event in events
nishanth
parents:
73
diff
changeset
|
100 |
|
6c3602582f9f
included the send_mail and created the corresponding event in events
nishanth
parents:
73
diff
changeset
|
101 |
You have been selected to attend Sage Days 25, India. |
6c3602582f9f
included the send_mail and created the corresponding event in events
nishanth
parents:
73
diff
changeset
|
102 |
|
6c3602582f9f
included the send_mail and created the corresponding event in events
nishanth
parents:
73
diff
changeset
|
103 |
Please click the link below or paste it in a browser to confirm your participation. |
6c3602582f9f
included the send_mail and created the corresponding event in events
nishanth
parents:
73
diff
changeset
|
104 |
http://fossee.in/sage_days/registration/cnf_sgd_ptc/%s?email=%s |
6c3602582f9f
included the send_mail and created the corresponding event in events
nishanth
parents:
73
diff
changeset
|
105 |
|
6c3602582f9f
included the send_mail and created the corresponding event in events
nishanth
parents:
73
diff
changeset
|
106 |
Please ignore this mail if you are not likely to attend Sage Days 25, India. |
6c3602582f9f
included the send_mail and created the corresponding event in events
nishanth
parents:
73
diff
changeset
|
107 |
|
6c3602582f9f
included the send_mail and created the corresponding event in events
nishanth
parents:
73
diff
changeset
|
108 |
PS: |
211 | 109 |
Your participation will be confirmed only if you visit the link above at the latest by 5 August, 2010. Mostly you will have to arrange accommodation yourself, since you have registered very late. If you don't hear from us about accommodation, please understand you are not given one. |
199 | 110 |
|
211 | 111 |
If by any chance you have not confirmed your participation by 5 August, 2010 and still want to participate, write a mail to sagedays@fossee.in |
118
6c3602582f9f
included the send_mail and created the corresponding event in events
nishanth
parents:
73
diff
changeset
|
112 |
|
6c3602582f9f
included the send_mail and created the corresponding event in events
nishanth
parents:
73
diff
changeset
|
113 |
Thanking you, |
6c3602582f9f
included the send_mail and created the corresponding event in events
nishanth
parents:
73
diff
changeset
|
114 |
|
6c3602582f9f
included the send_mail and created the corresponding event in events
nishanth
parents:
73
diff
changeset
|
115 |
Sage Days India Team, |
6c3602582f9f
included the send_mail and created the corresponding event in events
nishanth
parents:
73
diff
changeset
|
116 |
FOSSEE, IIT Bombay. |
119 | 117 |
"""%(user.first_name.title(), user.last_name.title(), user.id, user.email) |
118
6c3602582f9f
included the send_mail and created the corresponding event in events
nishanth
parents:
73
diff
changeset
|
118 |
|
119 | 119 |
send_mail(subject, message, "sagedays@fossee.in", [user.email]) |
118
6c3602582f9f
included the send_mail and created the corresponding event in events
nishanth
parents:
73
diff
changeset
|
120 |
|
148
f986e4fee615
created mail that should be shown to enter IIT for sgedays
nishanth
parents:
137
diff
changeset
|
121 |
def send_cnf_email(user): |
f986e4fee615
created mail that should be shown to enter IIT for sgedays
nishanth
parents:
137
diff
changeset
|
122 |
""" send email so that it can be shown at the gate in IIT |
f986e4fee615
created mail that should be shown to enter IIT for sgedays
nishanth
parents:
137
diff
changeset
|
123 |
""" |
f986e4fee615
created mail that should be shown to enter IIT for sgedays
nishanth
parents:
137
diff
changeset
|
124 |
|
f986e4fee615
created mail that should be shown to enter IIT for sgedays
nishanth
parents:
137
diff
changeset
|
125 |
subject = "Sage Days 25, India - Thankyou for confirming participation" |
f986e4fee615
created mail that should be shown to enter IIT for sgedays
nishanth
parents:
137
diff
changeset
|
126 |
|
f986e4fee615
created mail that should be shown to enter IIT for sgedays
nishanth
parents:
137
diff
changeset
|
127 |
message = """ |
f986e4fee615
created mail that should be shown to enter IIT for sgedays
nishanth
parents:
137
diff
changeset
|
128 |
Dear %s %s, |
f986e4fee615
created mail that should be shown to enter IIT for sgedays
nishanth
parents:
137
diff
changeset
|
129 |
|
f986e4fee615
created mail that should be shown to enter IIT for sgedays
nishanth
parents:
137
diff
changeset
|
130 |
Thank you for confirming your participation in Sage Days 25, India. |
f986e4fee615
created mail that should be shown to enter IIT for sgedays
nishanth
parents:
137
diff
changeset
|
131 |
|
f986e4fee615
created mail that should be shown to enter IIT for sgedays
nishanth
parents:
137
diff
changeset
|
132 |
Please carry a copy of this email, to be shown at the security outpost to enter IIT Bombay. |
f986e4fee615
created mail that should be shown to enter IIT for sgedays
nishanth
parents:
137
diff
changeset
|
133 |
|
f986e4fee615
created mail that should be shown to enter IIT for sgedays
nishanth
parents:
137
diff
changeset
|
134 |
PS: Take a pass for your Laptop/Camera while entering into the campus. |
f986e4fee615
created mail that should be shown to enter IIT for sgedays
nishanth
parents:
137
diff
changeset
|
135 |
|
f986e4fee615
created mail that should be shown to enter IIT for sgedays
nishanth
parents:
137
diff
changeset
|
136 |
Thanking you, |
f986e4fee615
created mail that should be shown to enter IIT for sgedays
nishanth
parents:
137
diff
changeset
|
137 |
|
f986e4fee615
created mail that should be shown to enter IIT for sgedays
nishanth
parents:
137
diff
changeset
|
138 |
Sage Days India Team, |
f986e4fee615
created mail that should be shown to enter IIT for sgedays
nishanth
parents:
137
diff
changeset
|
139 |
FOSSEE, IIT Bombay. |
f986e4fee615
created mail that should be shown to enter IIT for sgedays
nishanth
parents:
137
diff
changeset
|
140 |
"""%(user.first_name.title(), user.last_name.title()) |
f986e4fee615
created mail that should be shown to enter IIT for sgedays
nishanth
parents:
137
diff
changeset
|
141 |
|
f986e4fee615
created mail that should be shown to enter IIT for sgedays
nishanth
parents:
137
diff
changeset
|
142 |
send_mail(subject, message, "sagedays@fossee.in", [user.email]) |
f986e4fee615
created mail that should be shown to enter IIT for sgedays
nishanth
parents:
137
diff
changeset
|
143 |
|
212
5c71757e7e0e
Edited mail contents and added another function to send wait-listed email.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
211
diff
changeset
|
144 |
def send_acco_confirm_mail(user_obj, venue, amount, bedding=False): |
178 | 145 |
""" take the given message and add it to main message and send the mail. |
146 |
""" |
|
148
f986e4fee615
created mail that should be shown to enter IIT for sgedays
nishanth
parents:
137
diff
changeset
|
147 |
|
212
5c71757e7e0e
Edited mail contents and added another function to send wait-listed email.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
211
diff
changeset
|
148 |
subject = "[Sage Days 25, India] Accommodation details" |
5c71757e7e0e
Edited mail contents and added another function to send wait-listed email.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
211
diff
changeset
|
149 |
|
5c71757e7e0e
Edited mail contents and added another function to send wait-listed email.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
211
diff
changeset
|
150 |
if bedding: |
5c71757e7e0e
Edited mail contents and added another function to send wait-listed email.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
211
diff
changeset
|
151 |
bedding_content = 'Also it will be helpful for you to carry some '\ |
5c71757e7e0e
Edited mail contents and added another function to send wait-listed email.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
211
diff
changeset
|
152 |
'kind of light bedding although a single mat is likely to be '\ |
5c71757e7e0e
Edited mail contents and added another function to send wait-listed email.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
211
diff
changeset
|
153 |
'provided. ' |
5c71757e7e0e
Edited mail contents and added another function to send wait-listed email.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
211
diff
changeset
|
154 |
else: |
5c71757e7e0e
Edited mail contents and added another function to send wait-listed email.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
211
diff
changeset
|
155 |
bedding_content = '' |
5c71757e7e0e
Edited mail contents and added another function to send wait-listed email.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
211
diff
changeset
|
156 |
|
5c71757e7e0e
Edited mail contents and added another function to send wait-listed email.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
211
diff
changeset
|
157 |
main_message = """ |
5c71757e7e0e
Edited mail contents and added another function to send wait-listed email.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
211
diff
changeset
|
158 |
Dear %(first_name)s %(last_name)s, |
178 | 159 |
|
212
5c71757e7e0e
Edited mail contents and added another function to send wait-listed email.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
211
diff
changeset
|
160 |
We are pleased to inform that you have been allotted accommodation |
5c71757e7e0e
Edited mail contents and added another function to send wait-listed email.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
211
diff
changeset
|
161 |
during Sage Days 25, as per your request at the time of registration. |
5c71757e7e0e
Edited mail contents and added another function to send wait-listed email.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
211
diff
changeset
|
162 |
Please note that the accommodation availability in IITB is very limited |
5c71757e7e0e
Edited mail contents and added another function to send wait-listed email.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
211
diff
changeset
|
163 |
for residing students and staff themselves and hence we have alloted all |
5c71757e7e0e
Edited mail contents and added another function to send wait-listed email.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
211
diff
changeset
|
164 |
the rooms on twin shared basis for the participants of Sage Days 25. Also |
5c71757e7e0e
Edited mail contents and added another function to send wait-listed email.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
211
diff
changeset
|
165 |
there is a charge involved with the accommodation which is mentioned |
5c71757e7e0e
Edited mail contents and added another function to send wait-listed email.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
211
diff
changeset
|
166 |
below. Kindly oblige. When you arrive at IIT Bombay please feel free to |
5c71757e7e0e
Edited mail contents and added another function to send wait-listed email.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
211
diff
changeset
|
167 |
call Madhusudan.C.S on +91-9987214220 for further details on getting to |
5c71757e7e0e
Edited mail contents and added another function to send wait-listed email.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
211
diff
changeset
|
168 |
the place of accommodation. If Madhusudan is not reachable, as a fall back |
5c71757e7e0e
Edited mail contents and added another function to send wait-listed email.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
211
diff
changeset
|
169 |
please feel free to contact Anoop on +91-8149769093. %(bedding)sPlease |
5c71757e7e0e
Edited mail contents and added another function to send wait-listed email.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
211
diff
changeset
|
170 |
carry your valid Identity card. Also please confirm the requirement of |
5c71757e7e0e
Edited mail contents and added another function to send wait-listed email.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
211
diff
changeset
|
171 |
accommodation as per these conditions by Saturday, Aug 7th, 2010 evening. |
5c71757e7e0e
Edited mail contents and added another function to send wait-listed email.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
211
diff
changeset
|
172 |
If we receive no response from you by 7th evening we will your allot the |
5c71757e7e0e
Edited mail contents and added another function to send wait-listed email.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
211
diff
changeset
|
173 |
accommodation to other participants who are wait-listed now. |
178 | 174 |
|
212
5c71757e7e0e
Edited mail contents and added another function to send wait-listed email.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
211
diff
changeset
|
175 |
Your accommodation venue: %(venue)s |
5c71757e7e0e
Edited mail contents and added another function to send wait-listed email.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
211
diff
changeset
|
176 |
Charge: Rs. %(amount)s per day |
178 | 177 |
|
212
5c71757e7e0e
Edited mail contents and added another function to send wait-listed email.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
211
diff
changeset
|
178 |
Please note that you need to deposit the money for all the four days at |
5c71757e7e0e
Edited mail contents and added another function to send wait-listed email.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
211
diff
changeset
|
179 |
the time of obtaining the accommodation. If you are leaving early we will |
5c71757e7e0e
Edited mail contents and added another function to send wait-listed email.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
211
diff
changeset
|
180 |
reimburse the remaining amount. |
178 | 181 |
|
182 |
Thanking you, |
|
183 |
||
184 |
Sage Days India Team, |
|
212
5c71757e7e0e
Edited mail contents and added another function to send wait-listed email.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
211
diff
changeset
|
185 |
FOSSEE, IIT Bombay.""" % { |
5c71757e7e0e
Edited mail contents and added another function to send wait-listed email.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
211
diff
changeset
|
186 |
'first_name': user_obj.first_name.title(), |
5c71757e7e0e
Edited mail contents and added another function to send wait-listed email.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
211
diff
changeset
|
187 |
'last_name': user_obj.last_name.title(), |
5c71757e7e0e
Edited mail contents and added another function to send wait-listed email.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
211
diff
changeset
|
188 |
'venue': venue, |
5c71757e7e0e
Edited mail contents and added another function to send wait-listed email.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
211
diff
changeset
|
189 |
'amount': amount, |
5c71757e7e0e
Edited mail contents and added another function to send wait-listed email.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
211
diff
changeset
|
190 |
'bedding': bedding_content, |
5c71757e7e0e
Edited mail contents and added another function to send wait-listed email.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
211
diff
changeset
|
191 |
} |
5c71757e7e0e
Edited mail contents and added another function to send wait-listed email.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
211
diff
changeset
|
192 |
|
5c71757e7e0e
Edited mail contents and added another function to send wait-listed email.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
211
diff
changeset
|
193 |
send_mail(subject, main_message, "sagedays@fossee.in", [user_obj.email]) |
5c71757e7e0e
Edited mail contents and added another function to send wait-listed email.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
211
diff
changeset
|
194 |
|
5c71757e7e0e
Edited mail contents and added another function to send wait-listed email.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
211
diff
changeset
|
195 |
def send_acco_reject_mail(user_obj): |
5c71757e7e0e
Edited mail contents and added another function to send wait-listed email.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
211
diff
changeset
|
196 |
""" Send the accommodation reject mail. |
5c71757e7e0e
Edited mail contents and added another function to send wait-listed email.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
211
diff
changeset
|
197 |
""" |
5c71757e7e0e
Edited mail contents and added another function to send wait-listed email.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
211
diff
changeset
|
198 |
|
5c71757e7e0e
Edited mail contents and added another function to send wait-listed email.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
211
diff
changeset
|
199 |
subject = "[Sage Days 25, India] Accommodation details" |
5c71757e7e0e
Edited mail contents and added another function to send wait-listed email.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
211
diff
changeset
|
200 |
|
5c71757e7e0e
Edited mail contents and added another function to send wait-listed email.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
211
diff
changeset
|
201 |
main_message = """ |
5c71757e7e0e
Edited mail contents and added another function to send wait-listed email.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
211
diff
changeset
|
202 |
Dear %(first_name)s %(last_name)s, |
5c71757e7e0e
Edited mail contents and added another function to send wait-listed email.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
211
diff
changeset
|
203 |
|
5c71757e7e0e
Edited mail contents and added another function to send wait-listed email.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
211
diff
changeset
|
204 |
We regret to inform you that we haven't been able to allot accommodation |
5c71757e7e0e
Edited mail contents and added another function to send wait-listed email.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
211
diff
changeset
|
205 |
to you because of a lot of demand and the facilities in IIT Bombay is |
5c71757e7e0e
Edited mail contents and added another function to send wait-listed email.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
211
diff
changeset
|
206 |
extremely limited. Although we haven't completely rejected your request. |
5c71757e7e0e
Edited mail contents and added another function to send wait-listed email.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
211
diff
changeset
|
207 |
You have been wait-listed for accommodation and if participants who have |
5c71757e7e0e
Edited mail contents and added another function to send wait-listed email.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
211
diff
changeset
|
208 |
been alloted accommodation don't confirm by 7th August, 2010 evening we |
5c71757e7e0e
Edited mail contents and added another function to send wait-listed email.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
211
diff
changeset
|
209 |
will allot them to the wait-listed participants. Although please note, if |
5c71757e7e0e
Edited mail contents and added another function to send wait-listed email.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
211
diff
changeset
|
210 |
alloted accommodation, there will be charges associated with |
5c71757e7e0e
Edited mail contents and added another function to send wait-listed email.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
211
diff
changeset
|
211 |
accommodation, the details of which will be sent if you have been given |
5c71757e7e0e
Edited mail contents and added another function to send wait-listed email.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
211
diff
changeset
|
212 |
accommodation. |
5c71757e7e0e
Edited mail contents and added another function to send wait-listed email.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
211
diff
changeset
|
213 |
|
5c71757e7e0e
Edited mail contents and added another function to send wait-listed email.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
211
diff
changeset
|
214 |
Thanking you, |
5c71757e7e0e
Edited mail contents and added another function to send wait-listed email.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
211
diff
changeset
|
215 |
|
5c71757e7e0e
Edited mail contents and added another function to send wait-listed email.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
211
diff
changeset
|
216 |
Sage Days India Team, |
5c71757e7e0e
Edited mail contents and added another function to send wait-listed email.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
211
diff
changeset
|
217 |
FOSSEE, IIT Bombay.""" % { |
5c71757e7e0e
Edited mail contents and added another function to send wait-listed email.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
211
diff
changeset
|
218 |
'first_name': user_obj.first_name.title(), |
5c71757e7e0e
Edited mail contents and added another function to send wait-listed email.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
211
diff
changeset
|
219 |
'last_name': user_obj.last_name.title() |
5c71757e7e0e
Edited mail contents and added another function to send wait-listed email.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
211
diff
changeset
|
220 |
} |
148
f986e4fee615
created mail that should be shown to enter IIT for sgedays
nishanth
parents:
137
diff
changeset
|
221 |
|
185 | 222 |
send_mail(subject, main_message, "sagedays@fossee.in", [user_obj.email]) |
148
f986e4fee615
created mail that should be shown to enter IIT for sgedays
nishanth
parents:
137
diff
changeset
|
223 |
|
56 | 224 |
def mail_invi(to_emails): |
225 |
""" send the invitation email to given email addresses. |
|
226 |
""" |
|
227 |
||
228 |
subject = "Invitation to Sage Days 25, India" |
|
229 |
||
230 |
message = """ |
|
231 |
Sage Days 25 - An Invitation |
|
232 |
||
233 |
What is 'Sage Days'? |
|
234 |
Sage Days is a confluence of present and prospective SAGE Users and Developers. It is an opportunity to come together to share ideas, |
|
235 |
brainstorm and hack on Sage. |
|
236 |
||
237 |
Sage Days 25 is the 25th version of Sage Days, and is being organized in Mumbai, India. In order to cater to an Indian audience and scenario, this version has been tweaked slightly. Sage Days 25 has beginner level tutorials, in addition to the usual talks and sprints, to help new users get started with Sage and help promote the use of Sage in India. |
|
238 |
||
239 |
What is Sage? |
|
240 |
Sage is a free, open-source mathematics software system licensed under the GPL. It combines the power of numerous existing open-source packages into a common Python-based interface. It's mission is to create a "viable free open source alternative to Magma, Maple, Mathematica and Matlab". |
|
241 |
||
242 |
Sage has tools for a broad range of mathematical areas like Linear Algebra, Calculus, Symbolic Math, Plotting, Rings & Groups, Graph Theory, Number Theory and Cryptography. Essentially, "it can do anything from mapping a 12-dimensional object to calculating rainfall patterns under global warming" - as Science Daily puts it . Eager to get started? Start here. [#1] |
|
243 |
||
244 |
Apart from being feature rich, it's usability is one of it's greatest strengths. Sage Notebook, a web-interface for all the math you'll ever want to do, is really the killer feature! As the Sage Marketing page says, "The SAGE GUI surely works on your computer box, because it just runs in Firefox!". Try it Now! [#2] |
|
245 |
||
246 |
Why should you attend? |
|
247 |
Sage Days 25 is being attended by the creator and lead developer of Sage, Prof. William Stein. It will also be attended by other developers of Sage. This would be a great opportunity to meet and interact with them! |
|
248 |
||
249 |
The conference will be attended by a plethora of enthusiastic people from all over the country who use Sage or are interested in doing so. The conference will also see the presence of many mathematicians interested in software. Who knows, you may run into someone you'd want to collaborate with, for your future work! |
|
250 |
||
251 |
This event will be a great learning experience, if you are even remotely interested in math and software for it! |
|
252 |
||
253 |
When and Where? |
|
254 |
Venue: IIT-Bombay, Mumbai, India |
|
255 |
Dates: August 9-12, 2010 |
|
256 |
||
257 |
Tentative Schedule: http://fossee.in/sage_days/schedule/ |
|
258 |
Register Here: http://fossee.in/sage_days/registration/register/ |
|
259 |
||
260 |
[#1] http://www.sagemath.org/tour.html |
|
261 |
[#2] http://www.sagenb.org/ |
|
262 |
||
263 |
-- |
|
264 |
Sage Days India Team, |
|
265 |
FOSSEE, IIT Bombay. |
|
266 |
||
267 |
""" |
|
268 |
||
269 |
for emails in to_emails: |
|
270 |
send_mail(subject, message, "sagedays@fossee.in", emails) |
|
271 |