kootenpv / yagmail

Send email in Python conveniently for gmail using yagmail
MIT License
2.64k stars 263 forks source link

Fixed the problem(send attachment txt file fails) #245

Closed leffss closed 2 years ago

leffss commented 2 years ago

Fixed the problem in issue: https://github.com/kootenpv/yagmail/issues/242

kootenpv commented 2 years ago

It's generally a bad idea to make a clone for a package for one change.

What's wrong with just fixing the original code and changing text/plain in the whole codebase to application/octet-stream rather than adding extra lines?

leffss commented 2 years ago

It's generally a bad idea to make a clone for a package for one change.

What's wrong with just fixing the original code and changing text/plain in the whole codebase to application/octet-stream rather than adding extra lines?

Because this problem is random, not all mailboxes will appear; And I really don't know why change text/plain to application/octet-stream can fix it.