> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 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.

<Note>
  External Documentation

  To learn more, visit the [Gmail documentation](https://developers.google.com/gmail/api/reference/rest/v1/users.messages/send).
</Note>

## Basic Parameters

<div className="integrations-table">
  | Parameter           | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
  | ------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
  | BCC                 | A comma-separated list of emails for BCC recipients of the message.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
  | CC                  | A comma-separated list of email for CC recipients of the message.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
  | Content             | The body of the mail.<br /><br />Blink supports `Content-Type Detection`. It can identify the type of content being entered (text, HTML, CSV, etc.) automatically.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
  | Content             | The body of the mail.<br /><br />Blink supports `Content-Type Detection`. It can identify the type of content being entered (text, HTML, CSV, etc.) automatically.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
  | Content Field Type  | The type of the content to send. Can be either regular text or rich text.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
  | From User ID        | The email of the user from which to send the email.<br />The special value 'me' can be used if the connection is OAuth to identify as the authenticated user.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
  | References          | This parameter tracks the conversation history. <br />\* 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.<br />  \* For example: `<Parent_Reference_header><Parent_Message_ID_header>` (No space needed).<br />\* 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:<br />  \* For exammple: `<Parent_In_Reply_To_header><Parent_Message_ID_header>` (No space needed).<br />\* If the parent has none of the mentioned headers, insert the parent's `Message-ID` header. |
  | Reply To Message ID | Insert 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.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
  | Subject             | This 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 ID           | Provide the thread ID to send the email as part of an existing thread. Can be obtained by the `List Gmail Messages` action.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
  | To                  | A comma-separated list of email recipients for the message, corresponding to the original recipients/sender from the initial sent message.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
</div>

## Advanced Parameters

<div className="integrations-table">
  | Parameter               | Description                                                                                                                                                                                                                                                                                                                  |
  | ----------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | Delegated User Override | Perform the action on behalf of another user, overriding the delegated user defined in the connection.<br /><br />If not specified, the delegated user is the one provided in the connection.<br /><br />Has no effect when using an OAuth connection.<br /><br />NOTE: the connection details are not edited by this input. |
</div>

## Example Output

```json theme={"dark"}
{
	"id": "1879ef5cc8e70395",
	"threadId": "1879ef5cc8e70395",
	"labelIds": [
		"UNREAD",
		"SENT",
		"INBOX"
	]
}
```
