Home > other >  Python3 solve the problem of email attachments garbled!!!!!!!!!!
Python3 solve the problem of email attachments garbled!!!!!!!!!!

Time:10-30





ExcelFile='./filename. XLS '
ExcelApart=MIMEApplication (open (excelFile, 'rb'). The read ())
ExcelApart. Add_header (' Content - Disposition ', 'attachment' filename=Header (' filename. XLS, 'utf-8). The encode ())
  • Related