jeremyephron / simplegmail

A simple Gmail API client for applications in Python
MIT License
336 stars 73 forks source link

Is plain text deprecated on Gmail service? #83

Closed gexzam closed 1 year ago

gexzam commented 1 year ago

Hi jeremy... I love your library If i call message.plain output is None. Nevertheless if i send an plain text email to myself, message.plain works fine. Is there a possibility that Gmail is hiding plain text part of a message and delivering HTML version only? Thanks.

dumbled00r commented 1 year ago

same problem, is there any solution?

sneakerush commented 1 year ago

Was this ever solved?

jeremyephron commented 1 year ago

Plaintext is not deprecated but not every email client will set a plaintext message. The Gmail web client (mail.google.com), for example, will correctly set a plaintext message. If message.plain is None, you should parse the html field in your application. Let me know if there are more details to this issue, but as far as I can tell this is not specific to the API or library.