Subversion Repositories SmartDukaan

Rev

Rev 10298 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 10298 Rev 10399
Line 194... Line 194...
194
    fileMsg.set_payload(file(TMP_FILE).read())
194
    fileMsg.set_payload(file(TMP_FILE).read())
195
    encoders.encode_base64(fileMsg)
195
    encoders.encode_base64(fileMsg)
196
    fileMsg.add_header('Content-Disposition','attachment;filename=recharge-report-for-week-ending-on-' + date.today().isoformat() + '.xls')
196
    fileMsg.add_header('Content-Disposition','attachment;filename=recharge-report-for-week-ending-on-' + date.today().isoformat() + '.xls')
197
    msg.attach(fileMsg)
197
    msg.attach(fileMsg)
198
    
198
    
199
    MAILTO = [email, 'kshitij.sood@shop2020.in', 'ashwani.kumar@spiceretail.co.in', 'adarsh.verma@spiceretail.co.in']
199
    MAILTO = [email, 'kshitij.sood@shop2020.in', 'digamber.chauhan@spiceretail.co.in', 'adarsh.verma@spiceretail.co.in']
200
    mailServer.login(SENDER, PASSWORD)
200
    mailServer.login(SENDER, PASSWORD)
201
    mailServer.sendmail(PASSWORD, MAILTO, msg.as_string())
201
    mailServer.sendmail(PASSWORD, MAILTO, msg.as_string())
202
 
202
 
203
def main():
203
def main():
204
    getProductSaleData()
204
    getProductSaleData()