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? Same issue #87

Closed sneakerush closed 1 year ago

sneakerush commented 1 year ago

If i call message.plain output is None. Has anyone came up with a solution for this?

Thanks.

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.