Subversion Repositories SmartDukaan

Rev

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

Rev 10219 Rev 10220
Line 1112... Line 1112...
1112
        #recipients = ['kshitij.sood@saholic.com']
1112
        #recipients = ['kshitij.sood@saholic.com']
1113
        msg = MIMEMultipart()
1113
        msg = MIMEMultipart()
1114
        msg['Subject'] = "Snapdeal Auto Pricing" + ' - ' + str(datetime.now())
1114
        msg['Subject'] = "Snapdeal Auto Pricing" + ' - ' + str(datetime.now())
1115
        msg['From'] = sender
1115
        msg['From'] = sender
1116
        recipients = ['rajneesh.arora@saholic.com','rajveer.singh@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']
1116
        recipients = ['rajneesh.arora@saholic.com','rajveer.singh@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']
1117
        msg['Subject'] = "Snapdeal Auto Pricing "+runType+" " + str(timestamp)
-
 
1118
        msg['From'] = sender
-
 
1119
        msg['To'] = ", ".join(recipients)
1117
        msg['To'] = ", ".join(recipients)
1120
        fileMsg = email.mime.base.MIMEBase('application','vnd.ms-excel')
1118
        fileMsg = email.mime.base.MIMEBase('application','vnd.ms-excel')
1121
        fileMsg.set_payload(file(filename).read())
1119
        fileMsg.set_payload(file(filename).read())
1122
        email.encoders.encode_base64(fileMsg)
1120
        email.encoders.encode_base64(fileMsg)
1123
        fileMsg.add_header('Content-Disposition','attachment;filename=snapdeal.xls')
1121
        fileMsg.add_header('Content-Disposition','attachment;filename=snapdeal.xls')