kootenpv / yagmail

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

Duplicate of an email's body #219

Open Wh1teStr1pe opened 2 years ago

Wh1teStr1pe commented 2 years ago

The problem is that every time when I send an email to myself, I get it in a right way, but Gmail Bot in telegram duplicates the body. With smtplib lib that doesn't happen to me and using other variants of sending emails either.

kootenpv commented 2 years ago

I suppose because yagmail adds both a html and text version.

Someone could make a PR to make this optional in the send function

bityob commented 2 years ago

I did something similiar in my fork version, because I had issues with the formatting of the html contents.

@Wh1teStr1pe, you can use it if you want, it does send only an html version.

https://github.com/perceptionpoint/yagmail/releases/tag/v0.20.0%2Bpp