Subversion Repositories SmartDukaan

Rev

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

Rev 18432 Rev 20172
Line 242... Line 242...
242
    if userId==27:
242
    if userId==27:
243
        recipients = ['kshitij.sood@saholic.com']
243
        recipients = ['kshitij.sood@saholic.com']
244
    elif userId==52:
244
    elif userId==52:
245
        recipients = ['manoj.kumar@shop2020.in']
245
        recipients = ['manoj.kumar@shop2020.in']
246
    else:
246
    else:
247
        recipients = ['rajneesh.arora@saholic.com','kshitij.sood@saholic.com']
247
        recipients = ['rajneesh.arora@saholic.com','kshitij.sood@saholic.com', 'khushal.bhatia@saholic.com']
248
    msg = MIMEMultipart()
248
    msg = MIMEMultipart()
249
    msg['Subject'] = "DTR Deals data (UserOnly) UserId - "+str(userId)+"" + ' - ' + str(datetime.now())
249
    msg['Subject'] = "DTR Deals data (UserOnly) UserId - "+str(userId)+"" + ' - ' + str(datetime.now())
250
    msg['From'] = sender
250
    msg['From'] = sender
251
    msg['To'] = ",".join(recipients)
251
    msg['To'] = ",".join(recipients)
252
    fileMsg = email.mime.base.MIMEBase('application','vnd.ms-excel')
252
    fileMsg = email.mime.base.MIMEBase('application','vnd.ms-excel')