| Line 1971... |
Line 1971... |
| 1971 |
generateFollowUpCallingReport()
|
1971 |
generateFollowUpCallingReport()
|
| 1972 |
generateAgentWiseFollowupCallingReport()
|
1972 |
generateAgentWiseFollowupCallingReport()
|
| 1973 |
generateOnBoardingCallingReport()
|
1973 |
generateOnBoardingCallingReport()
|
| 1974 |
generateAgentWiseOnboardingCallingReport()
|
1974 |
generateAgentWiseOnboardingCallingReport()
|
| 1975 |
# sendmail(["rajender.singh@shop2020.in"], "", TMP_FILE, SUBJECT)
|
1975 |
# sendmail(["rajender.singh@shop2020.in"], "", TMP_FILE, SUBJECT)
|
| 1976 |
sendmail(["amit.sirohi@shop2020.in","rajneesh.arora@saholic.com","ritesh.chauhan@shop2020.in", "shailesh.kumar@shop2020.in","utkarsh@coreoutsourcingservices.com","gupta.varun@coreoutsourcingservices.com","rajender.singh@shop2020.in"], "", TMP_FILE, SUBJECT)
|
1976 |
sendmail(["amit.sirohi@shop2020.in","rajneesh.arora@saholic.com","khushal.bhatia@saholic.com","ritesh.chauhan@shop2020.in", "shailesh.kumar@shop2020.in","utkarsh@coreoutsourcingservices.com","gupta.varun@coreoutsourcingservices.com","rajender.singh@shop2020.in"], "", TMP_FILE, SUBJECT)
|
| 1977 |
if options.reporttype == 'retention':
|
1977 |
if options.reporttype == 'retention':
|
| 1978 |
# generateAccessoriesCartReport()
|
1978 |
# generateAccessoriesCartReport()
|
| 1979 |
# generateAccessoriesTabsReport()
|
1979 |
# generateAccessoriesTabsReport()
|
| 1980 |
# generateAccessoriesOrderReport()
|
1980 |
# generateAccessoriesOrderReport()
|
| 1981 |
generateInactiveUsersReport()
|
1981 |
generateInactiveUsersReport()
|
| 1982 |
# sendmailretention(["rajender.singh@shop2020.in"], "", RET_FILE, RET_SUBJECT)
|
1982 |
# sendmailretention(["rajender.singh@shop2020.in"], "", RET_FILE, RET_SUBJECT)
|
| 1983 |
sendmailretention(["amit.sirohi@shop2020.in","rajneesh.arora@saholic.com", "shailesh.kumar@shop2020.in","chaitnaya.vats@shop2020.in","rajender.singh@shop2020.in"], "", RET_FILE, RET_SUBJECT)
|
1983 |
sendmailretention(["amit.sirohi@shop2020.in","rajneesh.arora@saholic.com", "khushal.bhatia@saholic.com", "shailesh.kumar@shop2020.in","chaitnaya.vats@shop2020.in","rajender.singh@shop2020.in"], "", RET_FILE, RET_SUBJECT)
|
| 1984 |
|
1984 |
|
| 1985 |
def sendmail(email, message, fileName, title):
|
1985 |
def sendmail(email, message, fileName, title):
|
| 1986 |
if email == "":
|
1986 |
if email == "":
|
| 1987 |
return
|
1987 |
return
|
| 1988 |
mailServer = smtplib.SMTP(SMTP_SERVER, SMTP_PORT)
|
1988 |
mailServer = smtplib.SMTP(SMTP_SERVER, SMTP_PORT)
|
| Line 2004... |
Line 2004... |
| 2004 |
fileMsg.set_payload(file(TMP_FILE).read())
|
2004 |
fileMsg.set_payload(file(TMP_FILE).read())
|
| 2005 |
encoders.encode_base64(fileMsg)
|
2005 |
encoders.encode_base64(fileMsg)
|
| 2006 |
fileMsg.add_header('Content-Disposition', 'attachment;filename=' + fileName)
|
2006 |
fileMsg.add_header('Content-Disposition', 'attachment;filename=' + fileName)
|
| 2007 |
msg.attach(fileMsg)
|
2007 |
msg.attach(fileMsg)
|
| 2008 |
|
2008 |
|
| 2009 |
MAILTO = ['amit.sirohi@shop2020.in','rajneesh.arora@saholic.com', 'shailesh.kumar@shop2020.in','gupta.varun@coreoutsourcingservices.com','utkarsh@coreoutsourcingservices.com','rajender.singh@shop2020.in']
|
2009 |
MAILTO = ['amit.sirohi@shop2020.in','rajneesh.arora@saholic.com', 'khushal.bhatia@saholic.com', 'shailesh.kumar@shop2020.in','gupta.varun@coreoutsourcingservices.com','utkarsh@coreoutsourcingservices.com','rajender.singh@shop2020.in']
|
| 2010 |
# MAILTO = ['rajender.singh@saholic.com']
|
2010 |
# MAILTO = ['rajender.singh@saholic.com']
|
| 2011 |
mailServer.login(SENDER, PASSWORD)
|
2011 |
mailServer.login(SENDER, PASSWORD)
|
| 2012 |
try:
|
2012 |
try:
|
| 2013 |
mailServer.sendmail(SENDER, MAILTO, msg.as_string())
|
2013 |
mailServer.sendmail(SENDER, MAILTO, msg.as_string())
|
| 2014 |
except:
|
2014 |
except:
|
| Line 2186... |
Line 2186... |
| 2186 |
fileMsg.set_payload(file(RET_FILE).read())
|
2186 |
fileMsg.set_payload(file(RET_FILE).read())
|
| 2187 |
encoders.encode_base64(fileMsg)
|
2187 |
encoders.encode_base64(fileMsg)
|
| 2188 |
fileMsg.add_header('Content-Disposition', 'attachment;filename=' + fileName)
|
2188 |
fileMsg.add_header('Content-Disposition', 'attachment;filename=' + fileName)
|
| 2189 |
msg.attach(fileMsg)
|
2189 |
msg.attach(fileMsg)
|
| 2190 |
|
2190 |
|
| 2191 |
MAILTO = ['amit.sirohi@shop2020.in','rajneesh.arora@saholic.com', 'shailesh.kumar@shop2020.in','chaitnaya.vats@shop2020.in','rajender.singh@shop2020.in']
|
2191 |
MAILTO = ['amit.sirohi@shop2020.in','rajneesh.arora@saholic.com', 'khushal.bhatia@saholic.com', 'shailesh.kumar@shop2020.in','chaitnaya.vats@shop2020.in','rajender.singh@shop2020.in']
|
| 2192 |
# MAILTO = ['rajender.singh@saholic.com']
|
2192 |
# MAILTO = ['rajender.singh@saholic.com']
|
| 2193 |
mailServer.login(SENDER, PASSWORD)
|
2193 |
mailServer.login(SENDER, PASSWORD)
|
| 2194 |
try:
|
2194 |
try:
|
| 2195 |
mailServer.sendmail(SENDER, MAILTO, msg.as_string())
|
2195 |
mailServer.sendmail(SENDER, MAILTO, msg.as_string())
|
| 2196 |
except:
|
2196 |
except:
|