| Line 1220... |
Line 1220... |
| 1220 |
generateAgentWiseFreshCallingReport()
|
1220 |
generateAgentWiseFreshCallingReport()
|
| 1221 |
generateFollowUpCallingReport()
|
1221 |
generateFollowUpCallingReport()
|
| 1222 |
generateAgentWiseFollowupCallingReport()
|
1222 |
generateAgentWiseFollowupCallingReport()
|
| 1223 |
generateOnBoardingCallingReport()
|
1223 |
generateOnBoardingCallingReport()
|
| 1224 |
generateAgentWiseOnboardingCallingReport()
|
1224 |
generateAgentWiseOnboardingCallingReport()
|
| 1225 |
#sendmail(["manas.kapoor@shop2020.in","amit.sirohi@shop2020.in","rajneesh.arora@saholic.com","ritesh.chauhan@shop2020.in", "shailesh.kumar@shop2020.in"], "", TMP_FILE, SUBJECT)
|
1225 |
sendmail(["manas.kapoor@shop2020.in","amit.sirohi@shop2020.in","rajneesh.arora@saholic.com","ritesh.chauhan@shop2020.in", "shailesh.kumar@shop2020.in"], "", TMP_FILE, SUBJECT)
|
| 1226 |
sendmail(["manas.kapoor@shop2020.in"], "", TMP_FILE, SUBJECT)
|
1226 |
#sendmail(["manas.kapoor@shop2020.in"], "", TMP_FILE, SUBJECT)
|
| 1227 |
|
1227 |
|
| 1228 |
def sendmail(email, message, fileName, title):
|
1228 |
def sendmail(email, message, fileName, title):
|
| 1229 |
if email == "":
|
1229 |
if email == "":
|
| 1230 |
return
|
1230 |
return
|
| 1231 |
mailServer = smtplib.SMTP(SMTP_SERVER, SMTP_PORT)
|
1231 |
mailServer = smtplib.SMTP(SMTP_SERVER, SMTP_PORT)
|
| Line 1247... |
Line 1247... |
| 1247 |
fileMsg.set_payload(file(TMP_FILE).read())
|
1247 |
fileMsg.set_payload(file(TMP_FILE).read())
|
| 1248 |
encoders.encode_base64(fileMsg)
|
1248 |
encoders.encode_base64(fileMsg)
|
| 1249 |
fileMsg.add_header('Content-Disposition', 'attachment;filename=' + fileName)
|
1249 |
fileMsg.add_header('Content-Disposition', 'attachment;filename=' + fileName)
|
| 1250 |
msg.attach(fileMsg)
|
1250 |
msg.attach(fileMsg)
|
| 1251 |
|
1251 |
|
| 1252 |
#MAILTO = ['manas.kapoor@saholic.com','amit.sirohi@shop2020.in','rajneesh.arora@saholic.com', 'ritesh.chauhan@shop2020.in', 'shailesh.kumar@shop2020.in']
|
1252 |
MAILTO = ['manas.kapoor@saholic.com','amit.sirohi@shop2020.in','rajneesh.arora@saholic.com', 'ritesh.chauhan@shop2020.in', 'shailesh.kumar@shop2020.in']
|
| 1253 |
MAILTO = ['manas.kapoor@saholic.com']
|
1253 |
#MAILTO = ['manas.kapoor@saholic.com']
|
| 1254 |
mailServer.login(SENDER, PASSWORD)
|
1254 |
mailServer.login(SENDER, PASSWORD)
|
| 1255 |
mailServer.sendmail(PASSWORD, MAILTO, msg.as_string())
|
1255 |
mailServer.sendmail(PASSWORD, MAILTO, msg.as_string())
|
| 1256 |
|
1256 |
|
| 1257 |
if __name__ == '__main__':
|
1257 |
if __name__ == '__main__':
|
| 1258 |
main()
|
1258 |
main()
|