Subversion Repositories SmartDukaan

Rev

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

Rev 7008 Rev 7009
Line 50... Line 50...
50
def main():
50
def main():
51
    notify()
51
    notify()
52
 
52
 
53
def __send_mail(message):
53
def __send_mail(message):
54
    try:
54
    try:
55
        '''thread = threading.Thread(target=partial(mail, "cnc.center@shop2020.in", "5h0p2o2o", ["pramit.singh@shop2020.in", "khushal.bhatia@shop2020.in", "chandan.kumar@shop2020.in",  "chaitnaya.vats@shop2020.in", "amit.gupta@shop2020.in", "rajneesh.arora@shop2020.in"], 'Coupons Expiry Alert', message))'''
55
        thread = threading.Thread(target=partial(mail, "cnc.center@shop2020.in", "5h0p2o2o", ["pramit.singh@shop2020.in", "khushal.bhatia@shop2020.in", "chandan.kumar@shop2020.in",  "chaitnaya.vats@shop2020.in", "amit.gupta@shop2020.in", "rajneesh.arora@shop2020.in", "rajveer.singh@shop2020.in"], 'Coupons Expiry Alert', message))
56
        thread = threading.Thread(target=partial(mail_html, "cnc.center@shop2020.in", "5h0p2o2o", ["amit.gupta@shop2020.in"], 'Coupons Expiry Alert', message))
-
 
57
        thread.start()
56
        thread.start()
58
    except Exception as ex:
57
    except Exception as ex:
59
        print ex    
58
        print ex    
60
 
59
 
61
if __name__ == '__main__':
60
if __name__ == '__main__':