Use the below code, I am not able to print the body of the mail. Can anyone help?
Thank you
from imap_tools import MailBox, A, AND, OR, NOT
with MailBox('outlook.office365.com').login('mailsx@mail.com', 'pwd') as mailbox:
for msg in mailbox.fetch(A(seen=False)):
print(msg.text)
Use the below code, I am not able to print the body of the mail. Can anyone help? Thank you