Trouble with Gmail to Discord email forwarding automation

I’m having issues with my automation setup for forwarding Gmail messages to a Discord channel. The automation works, but it’s not pulling in the email content correctly. Here’s what shows up in Discord:

New email received!

From:
Subject:
Message:

The email forwarding part works, but it’s not grabbing the actual email data. I think I might be using the wrong ID or class to fetch the info, but I’m not sure how to fix it.

I’m using Zapier for this automation. The Gmail trigger seems fine, but I’m getting errors with the {{}} data in Zapier. I’ve tried different things to get the right data inputs, even asked an AI for help!

I’m new to programming and the setup uses JSON. Any advice would be really helpful. Thanks!

hey mate, i had similar issues. try using the ‘body plain’ or ‘body html’ field in zapier instead of ‘raw body’. that usually grabs the content better. also, double check ur discord webhook setup - sometimes thats where things go wonky. if ur still stuck, hit up zapier support, theyre pretty good at helpin out.

Having worked with Zapier and email automations, I can suggest a few troubleshooting steps. First, double-check your Zap’s setup, particularly the field mappings. Ensure you’re using the correct variables for ‘From’, ‘Subject’, and ‘Body’ in your Discord message template. Sometimes, the issue lies in how Zapier interprets the email data.

If that doesn’t work, try using Zapier’s ‘Text’ or ‘HTML’ options for the email body instead of ‘Raw’. This can sometimes provide cleaner data. Also, consider adding a ‘Formatter’ step to your Zap to clean and structure the data before sending it to Discord.

Lastly, test your Zap with a sample email to see where exactly the data is getting lost. This can help pinpoint whether it’s a Zapier issue or a problem with how Discord is receiving the data. Don’t hesitate to reach out to Zapier support if you’re still stuck - they’re quite helpful with these kinds of setups.

I’ve dealt with similar issues when setting up email forwarding automations. One thing that often trips people up is the dynamic nature of email content and structure. Gmail, in particular, can be tricky because the email body isn’t always in a consistent format.

Here’s what worked for me: Instead of trying to grab specific elements by ID or class, I used Zapier’s ‘Raw Body’ option for the email content. This usually pulls in the full email text, which you can then parse or format as needed in later steps of your Zap.

For the subject and sender, make sure you’re using the correct field names in Zapier. They should be something like ‘Subject’ and ‘From Email’ (not the exact names, but similar).

If you’re still having trouble, you might want to add a ‘Formatter’ step in Zapier to clean up the data before sending it to Discord. This can help ensure you’re passing valid data to your Discord webhook.

Don’t get discouraged - email automation can be finicky, but once you get it right, it’s incredibly useful!