What do I put in Gmail Module for "body contents" coming from a google sheet?

:bullseye: What is your goal?

I’d like to send data from a Google Sheet to my Gmail.

:thinking: What is the problem?

My scenario runs and an email is sent, but it is empty.

:test_tube: What have you tried so far?

I think it must be a problem with the body contents, but I put in the parameters every which way and no way works. Ideas? If relevant, the data in the Google sheet is coming from a weather app, but that earlier part of the scenario works fine. Thanks!

:camera_with_flash: Screenshots: scenario setup, module configuration, errors

1 Like

Hey Christine,

What is the output of the Google sheets module and what are you trying to send?

1 Like

The google sheet spits out weather data from a weather app. It’s text.

Can you show a screenshot of the output?

1 Like

1 Like

Thats the configuration of a module that adds rows to a sheet. If you want the same sent over an email, just map the same variables.

1 Like

So Sunrise, Temperature, Status and Description? I replaced what was in there in the Gmail module with those variables (since they were in the google sheet module) and it didn’t work.

Do you have any other ideas? :thinking: Appreciate the help!

1 Like

Hi Christine,
I think it’s best you use the “Raw HTML” option for the body type and then map ass you wish to the “Content” box. You can then use HTML tags for line breaks for your desired output for the body of the mail - see below.

Let me know if that works for you.

1 Like

Thanks, I tried this and it didn’t work, unfortunately.

I didn’t change anything in the google sheet module. Maybe I should? If so, what do you recommend?

That error shows it was expecting an attachment that wasnt there.

Remove anything mapped in the attachments field and run the module again with plain content only.

Then check the run output and see if it succeeds.

From there, you can isolate whether the issue is caused by the attachment mapping or something else in the module.

I asked Claude and got my answer. The HTML it gave me to put in the “contents” window is

Sunrise: {{1.sunrise}}

Temperature: {{1.temperature}}

Status: {{1.name}}

Description: {{1.description}}

I don’t know how a non-coder is supposed to know that. The myth of “you don’t even need to code” that these apps like to shout is a joke. Seriously though, thanks all for your help!

Wow! Did you actually just call me impatient and lazy? Please do me a favor and don’t respond to my future posts. And for what it’s worth, your suggestion to me was very lazy and irrelevant. You suggested I delete attachments, but I didn’t have anything in that section of the module.

Welcome to the Make community!

Could you try sending a test email like this?


If it is successful, we require more information that demonstrates the problem to help us reproduce the complete scenario and any issues and errors.

To allow others to assist you, please provide the following:

1. All Relevant Screenshots

We need to see what you’re working with to give you the best advice. Screenshots are important because Make is a visual editor — a picture provides us with more context.

It would help us identify the issue by having screenshots of:

  • the full scenario, and the zoomed in parts of the scenario that you are referring to (if your scenario is huge),
  • a full scenario run/execution from the history (showing output “speech” bubbles),
  • relevant module fields (showing how you’ve used any built-in functions, and how you’ve mapped the variables),
  • relevant filters between modules (showing which operators and any built-in functions you’ve used, and how you’ve mapped the variables),
  • relevant module input/output bubbles,
  • if applicable, any error messages,
  • and if applicable, any external services (spreadsheet headers/ sample data/ regex101.com/ etc. to show the item/ record exists, and is set up correctly).
Need help❓View instructions ◀

We would appreciate it if you could directly upload screenshots here instead of linking to them outside of this forum. This allows us to zoom in on the image when clicked, and also having improved privacy from third-party sources.

Taking Screenshots

  • Microsoft Windows: Take screenshots using the “Windows Snipping Tool”, by pressing either PrtSc or WinShiftS keys on your keyboard.
  • MacOS: Take screenshots by pressing CommandShift4 keys on your keyboard.

Uploading Attachments

  • Drag image files directly into the rich-text editor, or
  • Click on the upload button in the editor toolbar to select files:

2. Scenario Blueprint

Providing your scenario will allow others to quickly recreate and see how you have set up the mappings in each module, and also allows us take screenshots or provide module exports of any solutions we have for you in return. This would benefit you in implementing our suggestions as you can view screenshots of the changes or paste corrected modules back into your scenario.

Need help❓View instructions ◀

A. Export Blueprint

In the scenario editor, click the three dots at the top-right, then select “Export blueprint”.

  • You can upload files and images to this forum by clicking on the upload button:

    Uploading an attachment here will look like this:
    blueprint.json (12.3 KB)

B. Create Public Share Link

In the scenario editor, click on the Share button:

Read more about the scenario sharing feature in the Help Centre.

3. Properly-formatted Output Bundles from a Scenario Run

Please provide the input/output bundles of each of the relevant modules by running the scenario, or get the bundles from a previous run from the Scenario “History” tab.

Providing the bundles from a scenario run will allow others to replicate what is going on, especially if there are complex data structures (nested arrays and collections) and external services. This helps mapping the correct raw variable names from collections (instead of the label/display name).

Need help❓View instructions ◀

Click on the white speech bubbles on the top-right of each module and select “Download output (or input) bundles”.

A. Upload a Text File

Save each bundle contents in a plain text editor as a moduleNumber-output.txt file. Open the file to check if it has not added additional formatting or encoded the plain text.

  • You can upload files and images to this forum by clicking on the upload button:

    Uploading an attachment here will look like this:
    module1-input.txt (1.2 KB)
    module1-output.txt (3.4 KB)

B. Insert a Formatted Code Block

If you are unable to upload files on this forum, alternatively you can paste the bundles AND format them correctly.

:warning: Formatting IS Important! :warning:

Here are some ways to provide text content in a way that it won’t be modified by the forum.

  • Method 1: Type code fence manually
    Manually type three backticks ``` in a separate line before and after the content, like this,

    ```
    text goes here
    ```
    
  • Method 2: Highlight the pasted content, then click the preformatted text/code button

  • Method 3: Upload your file elsewhere and share the public link
    This method is only advised for large files exceeding the forum upload limit.

Sharing these details will make it easier for others to assist you, so that you can get better answers, faster.

Hope this helps! If you are still having trouble, please provide more details.

@samliew

1 Like