Subversion Repositories SmartDukaan

Rev

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

Rev 14117 Rev 14397
Line 239... Line 239...
239
    smtpServer = smtplib.SMTP('localhost')
239
    smtpServer = smtplib.SMTP('localhost')
240
    #smtpServer.set_debuglevel(1)
240
    #smtpServer.set_debuglevel(1)
241
    sender = 'dtr@shop2020.in'
241
    sender = 'dtr@shop2020.in'
242
    if userId==27:
242
    if userId==27:
243
        recipients = ['kshitij.sood@saholic.com']
243
        recipients = ['kshitij.sood@saholic.com']
-
 
244
    elif userId==52:
-
 
245
        recipients = ['manoj.kumar@shop2020.in']
244
    else:
246
    else:
245
        recipients = ['rajneesh.arora@saholic.com','kshitij.sood@saholic.com']
247
        recipients = ['rajneesh.arora@saholic.com','kshitij.sood@saholic.com']
246
    msg = MIMEMultipart()
248
    msg = MIMEMultipart()
247
    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())
248
    msg['From'] = sender
250
    msg['From'] = sender