Subversion Repositories SmartDukaan

Rev

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

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