| Line 341... |
Line 341... |
| 341 |
<td style="text-align:center">"""+(exceptionItem.url)+"""</td>
|
341 |
<td style="text-align:center">"""+(exceptionItem.url)+"""</td>
|
| 342 |
<td style="text-align:center">"""+str(exceptionItem.available_price)+"""</td>
|
342 |
<td style="text-align:center">"""+str(exceptionItem.available_price)+"""</td>
|
| 343 |
<td style="text-align:center">"""+str(exceptionItem.in_stock)+"""</td>
|
343 |
<td style="text-align:center">"""+str(exceptionItem.in_stock)+"""</td>
|
| 344 |
<td style="text-align:center">"""+str(exceptionItem.codAvailable)+"""</td>
|
344 |
<td style="text-align:center">"""+str(exceptionItem.codAvailable)+"""</td>
|
| 345 |
<td style="text-align:center">"""+str(exceptionItem.coupon)+"""</td>
|
345 |
<td style="text-align:center">"""+str(exceptionItem.coupon)+"""</td>
|
| 346 |
<td style="text-align:center">"""+(exceptionItem.thumbail)+"""</td>
|
346 |
<td style="text-align:center">"""+(exceptionItem.thumbnail)+"""</td>
|
| 347 |
</tr>"""
|
347 |
</tr>"""
|
| 348 |
message+="""</tbody></table></body></html>"""
|
348 |
message+="""</tbody></table></body></html>"""
|
| 349 |
print message
|
349 |
print message
|
| 350 |
recipients = ['kshitij.sood@saholic.com']
|
350 |
recipients = ['kshitij.sood@saholic.com']
|
| 351 |
#recipients = ['rajneesh.arora@saholic.com','kshitij.sood@saholic.com','chaitnaya.vats@saholic.com','manoj.kumar@saholic.com']
|
351 |
#recipients = ['rajneesh.arora@saholic.com','kshitij.sood@saholic.com','chaitnaya.vats@saholic.com','manoj.kumar@saholic.com']
|
| Line 362... |
Line 362... |
| 362 |
sender = 'dtr@shop2020.in'
|
362 |
sender = 'dtr@shop2020.in'
|
| 363 |
try:
|
363 |
try:
|
| 364 |
smtpServer.sendmail(sender, recipients, msg.as_string())
|
364 |
smtpServer.sendmail(sender, recipients, msg.as_string())
|
| 365 |
print "Successfully sent email"
|
365 |
print "Successfully sent email"
|
| 366 |
except:
|
366 |
except:
|
| - |
|
367 |
traceback.print_exc()
|
| 367 |
print "Error: unable to send email."
|
368 |
print "Error: unable to send email."
|
| 368 |
|
369 |
|
| 369 |
|
370 |
|
| 370 |
|
371 |
|
| 371 |
|
372 |
|