| Line 148... |
Line 148... |
| 148 |
sender = 'dtr@shop2020.in'
|
148 |
sender = 'dtr@shop2020.in'
|
| 149 |
#recipients = ['kshitij.sood@saholic.com']
|
149 |
#recipients = ['kshitij.sood@saholic.com']
|
| 150 |
msg = MIMEMultipart()
|
150 |
msg = MIMEMultipart()
|
| 151 |
msg['Subject'] = "DTR Deals data" + ' - ' + str(datetime.now())
|
151 |
msg['Subject'] = "DTR Deals data" + ' - ' + str(datetime.now())
|
| 152 |
msg['From'] = sender
|
152 |
msg['From'] = sender
|
| 153 |
recipients = ['rajneesh.arora@saholic.com','kshitij.sood@saholic.com','chaitnaya.vats@saholic.com','manoj.kumar@saholic.com']
|
153 |
recipients = ['rajneesh.arora@saholic.com','kshitij.sood@saholic.com','chaitnaya.vats@saholic.com','ritesh.chauhan@saholic.com','khushal.bhatia@saholic.com']
|
| 154 |
msg['To'] = ",".join(recipients)
|
154 |
msg['To'] = ",".join(recipients)
|
| 155 |
fileMsg = email.mime.base.MIMEBase('application','vnd.ms-excel')
|
155 |
fileMsg = email.mime.base.MIMEBase('application','vnd.ms-excel')
|
| 156 |
fileMsg.set_payload(file(filename).read())
|
156 |
fileMsg.set_payload(file(filename).read())
|
| 157 |
email.encoders.encode_base64(fileMsg)
|
157 |
email.encoders.encode_base64(fileMsg)
|
| 158 |
fileMsg.add_header('Content-Disposition','attachment;filename=Deal_Sheet_Dtr.xls')
|
158 |
fileMsg.add_header('Content-Disposition','attachment;filename=Deal_Sheet_Dtr.xls')
|