How to get gmail message content

Hi,
I can connect my gmail inbox and run the “Get Many” action, I can see multiple variables coming in (id, snippet, payload etc) but I can’t see the content of my e-mail.
Which node would you recomend to get the content of an e-mail received into a gmail inbox?
Thanks

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Hi, it’s $json.subject for subject and $json.textAsHtml for body

Hi Jay,

Thanks for feedback but unfortunately my incoming messages don’t have this field available, here is an example:

[
{
“id”: “191234234324234d7ad7”,
“threadId”: “191234234234d7ad7”,
“snippet”: “hello this is the text stnippet”,
“payload”: {
“mimeType”: “multipart/alternative”
},
“sizeEstimate”: 8234234234,
“historyId”: “433242342708”,
“internalDate”: “1725988492000”,
“labels”: [
{
“id”: “INBOX”,
“name”: “INBOX”
},
{
“id”: “CATEGORY_PERSONAL”,
“name”: “CATEGORY_PERSONAL”
},
{
“id”: “UNREAD”,
“name”: “UNREAD”
}
],
“Subject”: “crazy subject line from my mesage”,
“To”: “[email protected]”,
“From”: “"best place on hearth" [email protected]
}
]

Try this and get the message from $json.text

1 Like

@Joao ,

The difference may be that you are using the default configuration to get a Simplified message from the email when in your case you need to full message to gather what you want.

@KHarv example would do the trick as it has the default option of Simplify set as DISABLE.

The default is ENABLED:

2 Likes

Thank you it’s all working now.
The issue was, like you highlighted, coming from the Simplify Enabled

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.