139 FOSSEE, IIT Bombay. |
139 FOSSEE, IIT Bombay. |
140 """%(user.first_name.title(), user.last_name.title()) |
140 """%(user.first_name.title(), user.last_name.title()) |
141 |
141 |
142 send_mail(subject, message, "sagedays@fossee.in", [user.email]) |
142 send_mail(subject, message, "sagedays@fossee.in", [user.email]) |
143 |
143 |
144 def send_acco_confirm_mail(user_obj, message): |
144 def send_acco_confirm_mail(user_obj, venue, amount, bedding=False): |
145 """ take the given message and add it to main message and send the mail. |
145 """ take the given message and add it to main message and send the mail. |
146 """ |
146 """ |
147 |
147 |
148 subject = "Sage Days 25, India - Accomodation arranged" |
148 subject = "[Sage Days 25, India] Accommodation details" |
149 |
149 |
150 main_message=""" |
150 if bedding: |
151 Dear %s %s, |
151 bedding_content = 'Also it will be helpful for you to carry some '\ |
152 |
152 'kind of light bedding although a single mat is likely to be '\ |
153 Your request for accomodation during Sage Days 25, India has been accepted. |
153 'provided. ' |
154 |
154 else: |
155 %s |
155 bedding_content = '' |
156 |
156 |
157 Thanking you, |
157 main_message = """ |
158 |
158 Dear %(first_name)s %(last_name)s, |
159 Sage Days India Team, |
159 |
160 FOSSEE, IIT Bombay. |
160 We are pleased to inform that you have been allotted accommodation |
161 """%(user_obj.first_name.title(), user_obj.last_name.title(),message) |
161 during Sage Days 25, as per your request at the time of registration. |
|
162 Please note that the accommodation availability in IITB is very limited |
|
163 for residing students and staff themselves and hence we have alloted all |
|
164 the rooms on twin shared basis for the participants of Sage Days 25. Also |
|
165 there is a charge involved with the accommodation which is mentioned |
|
166 below. Kindly oblige. When you arrive at IIT Bombay please feel free to |
|
167 call Madhusudan.C.S on +91-9987214220 for further details on getting to |
|
168 the place of accommodation. If Madhusudan is not reachable, as a fall back |
|
169 please feel free to contact Anoop on +91-8149769093. %(bedding)sPlease |
|
170 carry your valid Identity card. Also please confirm the requirement of |
|
171 accommodation as per these conditions by Saturday, Aug 7th, 2010 evening. |
|
172 If we receive no response from you by 7th evening we will your allot the |
|
173 accommodation to other participants who are wait-listed now. |
|
174 |
|
175 Your accommodation venue: %(venue)s |
|
176 Charge: Rs. %(amount)s per day |
|
177 |
|
178 Please note that you need to deposit the money for all the four days at |
|
179 the time of obtaining the accommodation. If you are leaving early we will |
|
180 reimburse the remaining amount. |
|
181 |
|
182 Thanking you, |
|
183 |
|
184 Sage Days India Team, |
|
185 FOSSEE, IIT Bombay.""" % { |
|
186 'first_name': user_obj.first_name.title(), |
|
187 'last_name': user_obj.last_name.title(), |
|
188 'venue': venue, |
|
189 'amount': amount, |
|
190 'bedding': bedding_content, |
|
191 } |
|
192 |
|
193 send_mail(subject, main_message, "sagedays@fossee.in", [user_obj.email]) |
|
194 |
|
195 def send_acco_reject_mail(user_obj): |
|
196 """ Send the accommodation reject mail. |
|
197 """ |
|
198 |
|
199 subject = "[Sage Days 25, India] Accommodation details" |
|
200 |
|
201 main_message = """ |
|
202 Dear %(first_name)s %(last_name)s, |
|
203 |
|
204 We regret to inform you that we haven't been able to allot accommodation |
|
205 to you because of a lot of demand and the facilities in IIT Bombay is |
|
206 extremely limited. Although we haven't completely rejected your request. |
|
207 You have been wait-listed for accommodation and if participants who have |
|
208 been alloted accommodation don't confirm by 7th August, 2010 evening we |
|
209 will allot them to the wait-listed participants. Although please note, if |
|
210 alloted accommodation, there will be charges associated with |
|
211 accommodation, the details of which will be sent if you have been given |
|
212 accommodation. |
|
213 |
|
214 Thanking you, |
|
215 |
|
216 Sage Days India Team, |
|
217 FOSSEE, IIT Bombay.""" % { |
|
218 'first_name': user_obj.first_name.title(), |
|
219 'last_name': user_obj.last_name.title() |
|
220 } |
162 |
221 |
163 send_mail(subject, main_message, "sagedays@fossee.in", [user_obj.email]) |
222 send_mail(subject, main_message, "sagedays@fossee.in", [user_obj.email]) |
164 |
223 |
165 def mail_invi(to_emails): |
224 def mail_invi(to_emails): |
166 """ send the invitation email to given email addresses. |
225 """ send the invitation email to given email addresses. |