Subversion Repositories SmartDukaan

Rev

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

Rev 4873 Rev 4876
Line 1594... Line 1594...
1594
    session.commit()
1594
    session.commit()
1595
    return True
1595
    return True
1596
 
1596
 
1597
def __send_mail_for_oos_item(item): 
1597
def __send_mail_for_oos_item(item): 
1598
    try:
1598
    try:
1599
        helper_client = HelperClient().get_client()
-
 
1600
        helper_client.saveUserEmailForSending("chaitnaya.vats@shop2020.in", "cnc.center@shop2020.in", "Item is out of stock. ID: " + str(item.id)  + " " + str(item.brand) +  " " + str(item.model_name) + " " + str(item.model_number), "", str(item.id), "OOSNotification")
-
 
1601
        helper_client.saveUserEmailForSending("abhishek.mathur@shop2020.in", "cnc.center@shop2020.in", "Item is out of stock. ID: " + str(item.id)  + " " + str(item.brand) +  " " + str(item.model_name) + " " + str(item.model_number), "", str(item.id), "OOSNotification")
1599
        EmailAttachmentSender.mail('cnc.center@shop2020.in', '5h0p2o2o', ['abhishek.mathur@shop2020.in', 'chaitnaya.vats@shop2020.in'], "Item is out of stock. ID: " + str(item.id)  + " " + str(item.brand) +  " " + str(item.model_name) + " " + str(item.model_number), None)
1602
    except Exception as e:
1600
    except Exception as e:
1603
        print e
1601
        print e