Skip to main content

Send Email Via Gmail In Thread

Sends an email message to a specified thread via Gmail's API. Note that this action doesn't support adding attachments.

External Documentation

To learn more, visit the Gmail documentation.

Basic Parameters

ParameterDescription
BCCA comma-separated list of emails for BCC recipients of the message.
CCA comma-separated list of email for CC recipients of the message.
ContentThe body of the mail.Blink supports Content-Type Detection. It can identify the type of content being entered (text, HTML, CSV, etc.) automatically.
ContentThe body of the mail.Blink supports Content-Type Detection. It can identify the type of content being entered (text, HTML, CSV, etc.) automatically.
Content Field TypeThe type of the content to send. Can be either regular text or rich text.
From User IDThe email of the user from which to send the email.The special value 'me' can be used if the connection is OAuth to identify as the authenticated user.
ReferencesThis parameter tracks the conversation history.
  • Insert the References header of the parent message (if it exists), followed by the parent’s Message-ID header. You can retrieve both pieces of information by using the Get Gmail Message action on the parent message. Locate the Message-ID and References headers under the headers attribute in the response.
    • For example: <Parent_Reference_header><Parent_Message_ID_header> (No space needed).
  • If the parent message has no References header but has an In-Reply-To header, the new message's References will include both the parent’s In-Reply-To and Message-ID headers. For example:
    • For exammple: <Parent_In_Reply_To_header><Parent_Message_ID_header> (No space needed).
  • If the parent has none of the mentioned headers, insert the parent's Message-ID header.
Reply To Message IDInsert the Message-ID header of the message that is being replied to. You can obtain the parent's Message-ID header by using the Get Gmail Message action on the parent message. Locate the Message-ID header under the headers attribute in the response.
SubjectThis is the email subject, and it must match the subject of the message you're replying to within the thread. You can retrieve the message subject using the Get Gmail Message action. Locate the Subject header under the headers attribute in the response.
Thread IDProvide the thread ID to send the email as part of an existing thread. Can be obtained by the List Gmail Messages action.
ToA comma-separated list of email recipients for the message, corresponding to the original recipients/sender from the initial sent message.

Advanced Parameters

ParameterDescription
Delegated User OverridePerform the action on behalf of another user, overriding the delegated user defined in the connection.If not specified, the delegated user is the one provided in the connection.Has no effect when using an OAuth connection.NOTE: the connection details are not edited by this input.

Example Output

{
"id": "1879ef5cc8e70395",
"threadId": "1879ef5cc8e70395",
"labelIds": [
"UNREAD",
"SENT",
"INBOX"
]
}

Workflow Library Example

Send Email Via Gmail in Thread and Send Results Via Email

Workflow LibraryPreview this Workflow on desktop