| Line 63... |
Line 63... |
| 63 |
fileMsg.set_payload(file(TMP_FILE).read())
|
63 |
fileMsg.set_payload(file(TMP_FILE).read())
|
| 64 |
encoders.encode_base64(fileMsg)
|
64 |
encoders.encode_base64(fileMsg)
|
| 65 |
fileMsg.add_header('Content-Disposition', 'attachment;filename=' + fileName)
|
65 |
fileMsg.add_header('Content-Disposition', 'attachment;filename=' + fileName)
|
| 66 |
msg.attach(fileMsg)
|
66 |
msg.attach(fileMsg)
|
| 67 |
|
67 |
|
| 68 |
MAILTO = ['rajender.singh@saholic.com','rajneesh.arora@saholic.com', 'amit.gupta@saholic.com']
|
68 |
MAILTO = ['rajender.singh@saholic.com','rajneesh.arora@saholic.com', 'amit.gupta@saholic.com','khushal.bhatia@saholic.com']
|
| 69 |
#MAILTO = ['rajender.singh@saholic.com']
|
69 |
#MAILTO = ['rajender.singh@saholic.com']
|
| 70 |
mailServer.login(SENDER, PASSWORD)
|
70 |
mailServer.login(SENDER, PASSWORD)
|
| 71 |
mailServer.sendmail(SENDER, MAILTO, msg.as_string())
|
71 |
mailServer.sendmail(SENDER, MAILTO, msg.as_string())
|
| 72 |
|
72 |
|
| 73 |
def get_mongo_connection(host='localhost', port=27017):
|
73 |
def get_mongo_connection(host='localhost', port=27017):
|
| Line 312... |
Line 312... |
| 312 |
generatePendingWalletRefundReport()
|
312 |
generatePendingWalletRefundReport()
|
| 313 |
generateApprovedWalletRefundReport()
|
313 |
generateApprovedWalletRefundReport()
|
| 314 |
generateCreditedWalletRefundReport()
|
314 |
generateCreditedWalletRefundReport()
|
| 315 |
generateCancelledWalletRefundReport()
|
315 |
generateCancelledWalletRefundReport()
|
| 316 |
#sendmail(["rajender.singh@shop2020.in"], "", TMP_FILE, SUBJECT)
|
316 |
#sendmail(["rajender.singh@shop2020.in"], "", TMP_FILE, SUBJECT)
|
| 317 |
sendmail(["rajender.singh@shop2020.in","rajneesh.arora@saholic.com", "amit.gupta@shop2020.in"], "", TMP_FILE, SUBJECT)
|
317 |
sendmail(["rajender.singh@shop2020.in","rajneesh.arora@saholic.com", "amit.gupta@shop2020.in", "khushal.bhatia@saholic.com"], "", TMP_FILE, SUBJECT)
|
| 318 |
|
318 |
|
| 319 |
if __name__ == '__main__':
|
319 |
if __name__ == '__main__':
|
| 320 |
main()
|
320 |
main()
|
| 321 |
|
321 |
|
| 322 |
|
322 |
|