kootenpv / yagmail

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

Cant send HMTL as attachment #225

Open aguseche opened 2 years ago

aguseche commented 2 years ago

When i try to send an html file as attachment it gets embedded as the body of the gmail. The problem with it is that the weight limit of the mail is 102 KB, as some of my files are heavier gmail cuts the html and not only some information is lost but also the format breaks. I would like to know if there is a workaround to fix it. Thank you for your help

mpds commented 2 years ago

As a workaround, I found that changing the file extension to something else (.txt, for example) sends it as an attachment. But sure, that's not ideal.