Subversion Repositories SmartDukaan

Rev

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

Rev 6941 Rev 6950
Line 87... Line 87...
87
    
87
    
88
    today = date.today()
88
    today = date.today()
89
    datestr = str(today.year) + "-" + str(today.month) + "-" + str(today.day)
89
    datestr = str(today.year) + "-" + str(today.month) + "-" + str(today.day)
90
    filename = "/tmp/insurance-" + datestr + ".xls"
90
    filename = "/tmp/insurance-" + datestr + ".xls"
91
    wbk.save(filename)
91
    wbk.save(filename)
92
    EmailAttachmentSender.mail("cnc.center@shop2020.in", "5h0p2o2o", ["rajveer.singh@shop2020.in","anupam.singh@shop2020.in"], "Insurance Details for date ", "Please find attached insurance details for today.", [get_attachment_part(filename)], [], [])
92
    EmailAttachmentSender.mail("cnc.center@shop2020.in", "5h0p2o2o", ["ab@universalinsurance.co.in", "urmila.phadke@universalinsurace.co.in"], "Insurance Details for date ", "Please find attached insurance details for today.", [get_attachment_part(filename)], ["pramit.singh@shop2020.in","rbuniversal@gmail.com","rajveer.singh@shop2020.in","anupam.singh@shop2020.in","rajneesh.arora@shop2020.in"], [])
93
   
93
   
94
if __name__ == '__main__':
94
if __name__ == '__main__':
95
    main()
95
    main()
96
    
96