| Line 2039... |
Line 2039... |
| 2039 |
except Exception as e:
|
2039 |
except Exception as e:
|
| 2040 |
print e
|
2040 |
print e
|
| 2041 |
print "Unable to send report.Trying with local SMTP"
|
2041 |
print "Unable to send report.Trying with local SMTP"
|
| 2042 |
smtpServer = smtplib.SMTP('localhost')
|
2042 |
smtpServer = smtplib.SMTP('localhost')
|
| 2043 |
smtpServer.set_debuglevel(1)
|
2043 |
smtpServer.set_debuglevel(1)
|
| 2044 |
sender = 'support@shop2020.in'
|
2044 |
sender = 'build@shop2020.in'
|
| 2045 |
recipients = ["kshitij.sood@saholic.com"]
|
2045 |
recipients = ["kshitij.sood@saholic.com"]
|
| 2046 |
msg = MIMEMultipart()
|
2046 |
msg = MIMEMultipart()
|
| 2047 |
msg['Subject'] = "Flipkart Scraping" + ' '+runType+' - ' + str(datetime.now())
|
2047 |
msg['Subject'] = "Flipkart Scraping" + ' '+runType+' - ' + str(datetime.now())
|
| 2048 |
msg['From'] = sender
|
2048 |
msg['From'] = sender
|
| 2049 |
#recipients = ['rajneesh.arora@saholic.com','anikendra.das@saholic.com','vikram.raghav@saholic.com','kshitij.sood@saholic.com','khushal.bhatia@saholic.com','chaitnaya.vats@saholic.com','chandan.kumar@saholic.com','manoj.kumar@saholic.com','yukti.jain@saholic.com','ankush.dhingra@saholic.com','manoj.pal@saholic.com']
|
2049 |
#recipients = ['rajneesh.arora@saholic.com','anikendra.das@saholic.com','vikram.raghav@saholic.com','kshitij.sood@saholic.com','khushal.bhatia@saholic.com','chaitnaya.vats@saholic.com','chandan.kumar@saholic.com','manoj.kumar@saholic.com','yukti.jain@saholic.com','ankush.dhingra@saholic.com','manoj.pal@saholic.com']
|
| Line 2227... |
Line 2227... |
| 2227 |
except Exception as e:
|
2227 |
except Exception as e:
|
| 2228 |
print e
|
2228 |
print e
|
| 2229 |
print "Unable to send pricing mail.Lets try with local SMTP."
|
2229 |
print "Unable to send pricing mail.Lets try with local SMTP."
|
| 2230 |
smtpServer = smtplib.SMTP('localhost')
|
2230 |
smtpServer = smtplib.SMTP('localhost')
|
| 2231 |
smtpServer.set_debuglevel(1)
|
2231 |
smtpServer.set_debuglevel(1)
|
| 2232 |
sender = 'support@shop2020.in'
|
2232 |
sender = 'build@shop2020.in'
|
| 2233 |
try:
|
2233 |
try:
|
| 2234 |
smtpServer.sendmail(sender, recipients, msg.as_string())
|
2234 |
smtpServer.sendmail(sender, recipients, msg.as_string())
|
| 2235 |
print "Successfully sent email"
|
2235 |
print "Successfully sent email"
|
| 2236 |
except:
|
2236 |
except:
|
| 2237 |
print "Error: unable to send email."
|
2237 |
print "Error: unable to send email."
|
| Line 2310... |
Line 2310... |
| 2310 |
except Exception as e:
|
2310 |
except Exception as e:
|
| 2311 |
print e
|
2311 |
print e
|
| 2312 |
print "Unable to send lost buy box mail.Lets try local SMTP"
|
2312 |
print "Unable to send lost buy box mail.Lets try local SMTP"
|
| 2313 |
smtpServer = smtplib.SMTP('localhost')
|
2313 |
smtpServer = smtplib.SMTP('localhost')
|
| 2314 |
smtpServer.set_debuglevel(1)
|
2314 |
smtpServer.set_debuglevel(1)
|
| 2315 |
sender = 'support@shop2020.in'
|
2315 |
sender = 'build@shop2020.in'
|
| 2316 |
try:
|
2316 |
try:
|
| 2317 |
smtpServer.sendmail(sender, recipients, msg.as_string())
|
2317 |
smtpServer.sendmail(sender, recipients, msg.as_string())
|
| 2318 |
print "Successfully sent email"
|
2318 |
print "Successfully sent email"
|
| 2319 |
except:
|
2319 |
except:
|
| 2320 |
print "Error: unable to send email."
|
2320 |
print "Error: unable to send email."
|
| Line 2396... |
Line 2396... |
| 2396 |
except Exception as e:
|
2396 |
except Exception as e:
|
| 2397 |
print e
|
2397 |
print e
|
| 2398 |
print "Unable to send Flipkart Cheap But Not In BuyBox Items mail.Lets try local SMTP"
|
2398 |
print "Unable to send Flipkart Cheap But Not In BuyBox Items mail.Lets try local SMTP"
|
| 2399 |
smtpServer = smtplib.SMTP('localhost')
|
2399 |
smtpServer = smtplib.SMTP('localhost')
|
| 2400 |
smtpServer.set_debuglevel(1)
|
2400 |
smtpServer.set_debuglevel(1)
|
| 2401 |
sender = 'support@shop2020.in'
|
2401 |
sender = 'build@shop2020.in'
|
| 2402 |
try:
|
2402 |
try:
|
| 2403 |
smtpServer.sendmail(sender, recipients, msg.as_string())
|
2403 |
smtpServer.sendmail(sender, recipients, msg.as_string())
|
| 2404 |
print "Successfully sent email"
|
2404 |
print "Successfully sent email"
|
| 2405 |
except:
|
2405 |
except:
|
| 2406 |
print "Error: unable to send email."
|
2406 |
print "Error: unable to send email."
|
| Line 2482... |
Line 2482... |
| 2482 |
except Exception as e:
|
2482 |
except Exception as e:
|
| 2483 |
print e
|
2483 |
print e
|
| 2484 |
print "Unable to send Flipkart Price Mismatch mail.Lets try local SMTP"
|
2484 |
print "Unable to send Flipkart Price Mismatch mail.Lets try local SMTP"
|
| 2485 |
smtpServer = smtplib.SMTP('localhost')
|
2485 |
smtpServer = smtplib.SMTP('localhost')
|
| 2486 |
smtpServer.set_debuglevel(1)
|
2486 |
smtpServer.set_debuglevel(1)
|
| 2487 |
sender = 'support@shop2020.in'
|
2487 |
sender = 'build@shop2020.in'
|
| 2488 |
try:
|
2488 |
try:
|
| 2489 |
smtpServer.sendmail(sender, recipients, msg.as_string())
|
2489 |
smtpServer.sendmail(sender, recipients, msg.as_string())
|
| 2490 |
print "Successfully sent email"
|
2490 |
print "Successfully sent email"
|
| 2491 |
except:
|
2491 |
except:
|
| 2492 |
print "Error: unable to send email."
|
2492 |
print "Error: unable to send email."
|
| Line 2558... |
Line 2558... |
| 2558 |
except Exception as e:
|
2558 |
except Exception as e:
|
| 2559 |
print e
|
2559 |
print e
|
| 2560 |
print "Unable to send Flipkart Negative margin mail.Lets try local SMTP"
|
2560 |
print "Unable to send Flipkart Negative margin mail.Lets try local SMTP"
|
| 2561 |
smtpServer = smtplib.SMTP('localhost')
|
2561 |
smtpServer = smtplib.SMTP('localhost')
|
| 2562 |
smtpServer.set_debuglevel(1)
|
2562 |
smtpServer.set_debuglevel(1)
|
| 2563 |
sender = 'support@shop2020.in'
|
2563 |
sender = 'build@shop2020.in'
|
| 2564 |
try:
|
2564 |
try:
|
| 2565 |
smtpServer.sendmail(sender, recipients, msg.as_string())
|
2565 |
smtpServer.sendmail(sender, recipients, msg.as_string())
|
| 2566 |
print "Successfully sent email"
|
2566 |
print "Successfully sent email"
|
| 2567 |
except:
|
2567 |
except:
|
| 2568 |
print "Error: unable to send email."
|
2568 |
print "Error: unable to send email."
|