Print(yagmail.__version__) shows: 0.10.209 but I'm still getting the same results. Yes it works on gmail web client. Painkiller (Feat Meghan Trainor) 7. K Michelle) 6. Love Like That (Feat. Stevie Wonder & Keith Urban) 8. Jason derulo songs. Application/octet-stream GoogleWe use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand. To be on the safe side and ensure consistent behavior in all browsers, it's usually better to use both: Content-Type: application/octet-stream Content-Disposition. The issue has something to do with the mac Mail App (desktop & ios) If you have macOS or iPhone when you will see that the csv attachments are displayed inline. See the part of the raw source, email send via perl's MIME::Lite + Net:SMTP, which works: Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename='123_ARIADNA-10-2017.csv' Content-Type: application/octet-stream based on my research adding Content-Disposition: attachment with Content-Type: application/csv should work in the meantime a small amendment in sender.py did the trick;) if content_object['encoding']!= 'base64' or content_object['sub_type'] =='csv': content_object['main_type'] = 'application' content_object['sub_type'] = 'octet-stream'. What is an OCTET-STREAM file? The OCTET-STREAM format is used for file attachments on the Web with an unknown file type. ![]() ![]() These.octet-stream files are arbitrary binary data files that may be in any multimedia format. The OCTET-STREAM format was developed for Web browsers to understand that the file attachment is in an unknown file type, which also allows the user to choose to download and save the attached file in any file format that the user wants. In other instances, the OCTET-STREAM file format is used to inform the user that the attached file may be saved in a recommended file format. This also allows the Web browser to enable the user to know the recommended file format for the attached.octet-stream file. These OCTET-STREAM files may be opened by renaming the extension of the attached file to a specific file extension, and then by using an application with support for opening such files. For example, an.octet-stream file may be renamed to a.txt file (if it is indeed a.txt file), and Notepad may then be used to open the file.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |