kootenpv / yagmail

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

Send identical email with same content multiple times to same address [sending email occasionally works] #272

Closed DanielOberlechner closed 5 months ago

DanielOberlechner commented 5 months ago

Hi, I'm using this yagmail for the first time and I configured it to work with gmail and oauth token. So far no problems. But now I try to debug my application which needs to send more than once the same email same title and body and that seems not to work. If I change title and body it works, but if I try to send identical email even with random numbers as ticket number in title like this

[Ticket number: 144272509] Hello Daniel, how is it going?

it doesn't send the email. When I look under apple mail and my google account under sent emails there is nothing there.

If I change the title and body to something complete different it works only one time and after that it stops working.

Has anyone an idea why this is like this? Is this a google spam filter or what seems here to be the problem?

I would be glad for any hints!

Kind regardes, Daniel Oberlechner

Edit: It looks like it is working correctly but the "new" emails don't get a new row in apples mail but are shown in the same email where the content is identical. Only the timestamp gets updated but the email is not shown separately from the old email. It is a strange behaviour from apple mail I guess my fault!