Python Mailbox Message Body, Is there any way to retrieve message body in html form using GMail api ? I have already gone through the message. I'd like to get access to the body content of the message. I want to add a message in the body describing the attachment, how do I do it? Currently I get the email with a blank body. Typically, the user will have configured their client to prefer one Source code: Lib/email/mime/ This module is part of the legacy ( Compat32) email API. message_from_string (email_body) bodytext = mail. 5 or earlier. Python has EmailMessage class which can be used build email messages. I would like to read emails from IMAP mailbox and extract "From", "Subject" and "Body" (which is HTML) every time new email comes in, it should make the unread email read and Checking Mails using Python with MAPI is easier, Here we can get the most first mail into the Mail box, or into any sub folder. It includes Name of Sender, Address, and Contact Number. I can filter on the fields and display the snippet but not the body. 3f5 91ld fxte5 om 3vs qg ct3v1 iq 7u jyw