Auto-forwarded email from Gmail to make.come Webhook custom mailhook blank text body

:bullseye: What is your goal?

Get auto-forwarded email body from Gmail into AirTable field using “Create a Record” Module.

:thinking: What is the problem & what have you tried?

The issue is that when the email is auto-forwarded from Gmail to my mailhook in make.com, the email does not contain anything in the text field. It appears to be blank.

However, when I manually forward the email to the mailhook it works fine and the full text from the email body is in the “Text” field. It’s only missing on AUTO-FORWARDED emails.

I also have the emails auto-forwarding to my other email account and can confirm they are being received with full email body.

:clipboard: Error messages or input/output bundles

None that I can tell.

:camera_with_flash: Screenshots (scenario flow, module settings, errors)

It looks like your problem might be that the body of your email is a part of the HTML content. This all comes down to how GMail structures the email. It autoforwards it to put the original message in a MIME structure, causing your text field to be empty while the manual forward is fine.

To fix this scroll down on your output and check to see if there is a “Body Plain” field. If there is then you can map that field. If not you will have to use a text parser in Make to strip the HTML tags. In fact in your screenshot I can see that you have an HTML Content field that is returned with a tag that appears to have content in it.

Yes. All the content appears to be in the HTML field. My hope was to parse the text in the email body rather than the HTML (not knowing which way is actually better or easier). I already started down the route because it worked with the manually-forwarded email. Any known options to get the text to show up, or is the only reasonable thing to parse the HTML?

Hello,

It depends on use-case. Sometimes HTML is better as there could be static refference points which simplifies process.

You can use Text Parser HTML to text module:

Have a nice day,
Michal