Gmail Node

Send and manage emails through Gmail.

Setup

  1. Go to the Google Cloud Console
  2. Enable the Gmail API
  3. Create OAuth credentials
  4. Add a GMAIL credential in Nodebase
OAuth consent screen must be configured with the gmail.send scope at minimum.

Operations

Send Email

  • To: recipient email address
  • Subject: email subject line
  • Body: HTML or plain text content
  • CC / BCC: optional

All fields support {{variables}}.

jsonExample output
{
  "gmail": {
    "messageId": "18abc123def",
    "threadId": "18abc123def",
    "to": "user@example.com",
    "status": "sent"
  }
}

Send with Attachment

Attach files by providing a publicly accessible URL. The file is downloaded and attached to the email before sending.

List Messages

Search and list messages using Gmail query syntax (e.g. from:user@example.com after:2024/01/01).

Get Message

Fetch a specific email by message ID. Returns subject, body, from, to, date, and attachments.

Combine with the Loop node to send personalized emails to a list of recipients from a Google Sheets spreadsheet.