Subversion Repositories SmartDukaan

Rev

Rev 12558 | Rev 12560 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 12558 Rev 12559
Line 1238... Line 1238...
1238
    
1238
    
1239
    filename = "/tmp/snapdeal-report-"+runType+" " + str(timestamp) + ".xls"
1239
    filename = "/tmp/snapdeal-report-"+runType+" " + str(timestamp) + ".xls"
1240
    wbk.save(filename)
1240
    wbk.save(filename)
1241
    try:
1241
    try:
1242
        #EmailAttachmentSender.mail("build@shop2020.in", "cafe@nes", ["kshitij.sood@saholic.com"], " Snapdeal Auto Pricing "+runType+" " + str(timestamp), "", [get_attachment_part(filename)], [""], [])
1242
        #EmailAttachmentSender.mail("build@shop2020.in", "cafe@nes", ["kshitij.sood@saholic.com"], " Snapdeal Auto Pricing "+runType+" " + str(timestamp), "", [get_attachment_part(filename)], [""], [])
1243
        EmailAttachmentSender.mail("build@shop2020.in", "cafe@nes", ["chandan.kumar@saholic.com","manoj.kumar@saholic.com","yukti.jain@saholic.com","ankush.dhingra@saholic.com","manoj.pal@saholic.com"], " Snapdeal Auto Pricing "+runType+" " + str(timestamp), "", [get_attachment_part(filename)], ["rajneesh.arora@saholic.com","anikendra.das@saholic.com","vikram.raghav@saholic.com","kshitij.sood@saholic.com","chaitnaya.vats@saholic.com","khushal.bhatia@saholic.com"], [])
1243
        EmailAttachmentSender.mail("build@shop2020.in", "cafe@nes", ["chandan.kumar@saholic.com","manoj.kumar@saholic.com","yukti.jain@saholic.com","ankush.dhingra@saholic.com","manoj.pal@saholic.com"], " Snapdeal Auto Pricing "+runType+" " + str(timestamp), "", [get_attachment_part(filename)], ["rajneesh.arora@saholic.com","anikendra.das@saholic.com","amit.gupta@shop2020.in","kshitij.sood@saholic.com","chaitnaya.vats@saholic.com","khushal.bhatia@saholic.com"], [])
1244
    except Exception as e:
1244
    except Exception as e:
1245
        print e
1245
        print e
1246
        print "Unable to send report.Trying with local SMTP"
1246
        print "Unable to send report.Trying with local SMTP"
1247
        smtpServer = smtplib.SMTP('localhost')
1247
        smtpServer = smtplib.SMTP('localhost')
1248
        smtpServer.set_debuglevel(1)
1248
        smtpServer.set_debuglevel(1)