Subversion Repositories SmartDukaan

Rev

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

Rev 6947 Rev 6957
Line 890... Line 890...
890
    email_header = Template(html_header).substitute(dict(order_date = formated_order_date, customer_name = customer_name, pickup_text = pickup_text, source_url = source_url))
890
    email_header = Template(html_header).substitute(dict(order_date = formated_order_date, customer_name = customer_name, pickup_text = pickup_text, source_url = source_url))
891
    email_footer = Template(html_footer).substitute(dict(total_amount = "%.2f" % total_amount, source_name = source_name))
891
    email_footer = Template(html_footer).substitute(dict(total_amount = "%.2f" % total_amount, source_name = source_name))
892
    
892
    
893
    try:
893
    try:
894
        helper_client = HelperClient(host_key = "helper_service_server_host_prod").get_client()
894
        helper_client = HelperClient(host_key = "helper_service_server_host_prod").get_client()
-
 
895
        if order.insurer:
-
 
896
            helper_client.saveUserEmailForSending([user_email], "", subject, email_header + html_table + email_footer, str(order.id), "DeliverySuccess", [], ["pramit.singh@shop2020.in ","anupam.singh@shop2020.in","rajveer.singh@shop2020.in"])
-
 
897
        else:
895
        helper_client.saveUserEmailForSending([user_email], "", subject, email_header + html_table + email_footer, str(order.id), "DeliverySuccess", [], [])
898
            helper_client.saveUserEmailForSending([user_email], "", subject, email_header + html_table + email_footer, str(order.id), "DeliverySuccess", [], [])
896
        return True
899
        return True
897
    except Exception as e:
900
    except Exception as e:
898
        print e
901
        print e
899
        return False
902
        return False
900
 
903