Gmail
This page provides information on how to connect to Gmail. This integration enables sending emails, fetching messages, searching through inboxes, managing contacts, and more using your Gmail account.
Connect Gmail
To connect to Gmail, you need to authenticate using your Google account. When prompted, sign in with your Gmail credentials and grant access to the required permissions. Once authenticated, the integration can access and manage your emails and contacts.
Query Gmail
The following section is a reference guide that provides a description of the available commands with their parameters to create Gmail queries.
Send Emails
Sends an email from your Gmail account to one or more recipients. You can include a subject, message body, attachments, and custom headers.
To Recipients string | array
Email address(es) of the intended recipients. You can provide a single email or a comma-separated list.
{{ toInput.text }}
From string
The sender’s email address. Usually, this will be your authenticated Gmail address.
Subject string
The subject line of the email. This text appears as the title in the recipient's inbox.
Message Content string
The main body of the email. Supports both plain text and HTML content. When using HTML, ensure the MIME type is correctly set to text/html to enable proper rendering of formatting like bold, links, and images.
<p>Hello {{nameInput.text}},</p>
<p>Thank you for your interest in our product.</p>
<p>Best regards,<br />The Team</p>
Attachments array
A list of file objects to be attached to the email. Each object must include the file name, MIME type, and base64-encoded content of the file. URLs are not supported.
Additional Headers object
Optional custom headers such as "Reply-To", "CC", or "BCC". Provide as a JSON object representing MIME-style headers, using key-value pairs.
{
"Reply-To": "another@example.com",
"CC": "team@example.com"
}