You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mails = g.inbox().mail(sender="sender@senderemail.com")
mail = mails[0].fetch()
print mail['subject']
print mail.body
Here, I am able to get properties like subject, Received, etc. but when printing body, I get this error :
Message instance has no attribute 'body'
This is the data I'm getting :
From nobody Mon Dec 26 16:42:46 2016
Delivered-To: someone@examplemail.com
Received: by 10.28.211.66 with SMTP id ferf98er9fef9fr;
.
.
.
X-Source-Dir: erferfefefrref:/public_html
X-CMAE-Envelope: grtgrtgrtgrtgrt......
This is the message body
The text was updated successfully, but these errors were encountered:
I'm trying to fetch the body of an email using
Here, I am able to get properties like
subject
,Received
, etc. but when printing body, I get this error :This is the data I'm getting :
The text was updated successfully, but these errors were encountered: