Send multiple email

Describe the problem/error/question

Estou trabalhando num fluxo simples, onde 1 vez ao dia o workflow verifica se há novos deals do pipedrive num determinado filtro, e se existir, envia email separados para diferentes destinatários.

Porem o gmail diz que o To configurado é inválido:

The email address ‘’ in the ‘To’ field isn’t valid

NodeOperationError: Invalid email address (item 1)
    at Object.execute (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Google/Gmail/v2/GmailV2.node.js:509:23)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at Workflow.runNode (/usr/local/lib/node_modules/n8n/node_modules/n8n-workflow/dist/Workflow.js:658:28)
    at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/Workfl

The workflow:

{
  "meta": {
    "instanceId": "d95b092ccf2497f0839e7d9015f15f7b044f26e7bb4bd8af00c41b8f156c5b26"
  },
  "nodes": [
    {
      "parameters": {
        "operation": "getAll",
        "resolveProperties": true,
        "returnAll": true,
        "filters": {
          "filter_id": 4130
        }
      },
      "name": "Pipedrive",
      "type": "n8n-nodes-base.pipedrive",
      "position": [
        760,
        380
      ],
      "typeVersion": 1,
      "credentials": {
        "pipedriveApi": {
          "id": "26",
          "name": "Pipedrive account 5"
        }
      }
    },
    {
      "parameters": {
        "rule": {
          "interval": [
            {
              "triggerAtHour": 10
            },
            {
              "triggerAtHour": 18
            }
          ]
        }
      },
      "id": "5ff71f9a-ce83-412f-b343-dccf156a1e4a",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        600,
        380
      ],
      "typeVersion": 1
    },
    {
      "parameters": {
        "batchSize": 60,
        "options": {
          "reset": false
        }
      },
      "id": "d1324611-9ce7-406d-8f0c-b4aa29479173",
      "name": "Split In Batches",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        920,
        380
      ],
      "typeVersion": 1
    },
    {
      "parameters": {
        "sendTo": "={{ $json[\"Pessoa de contato\"][\"email\"][0][\"value\"] }}",
        "emailType": "html",
        }
      },
      "id": "7ed1d4c0-12e7-4b26-9a93-84460a0ff974",
      "name": "Gmail",
      "type": "n8n-nodes-base.gmail",
      "position": [
        1100,
        380
      ],
      "typeVersion": 2,
      "credentials": {
        "gmailOAuth2": {
          "id": "27",
          "name": "Gmail account 2"
        }
      }
    }
  ],
  "connections": {
    "Pipedrive": {
      "main": [
        [
          {
            "node": "Split In Batches",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Pipedrive",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split In Batches": {
      "main": [
        [
          {
            "node": "Gmail",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}

Running n8n cloud

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 Felipe, welcome to the n8n community!

Sorry for missing your question before. Next time, please post in English :slight_smile: Here’s a translated version of your question:

I’m working on a simple flow, where once a day the workflow checks if there are new pipedrive deals in a certain filter, and if there are, it sends separate emails to different recipients.

However, gmail says that the To configured is invalid:

The email address ‘’ in the ‘To’ field isn’t valid

Your workflow JSON doesn’t seem to be valid; can you please review it and post it again so I can take a look?

Thanks!