I can create Draft in Gmail, can "Get" the draft, but cannot Send it?

Describe the problem/error/question

I am not seeing, within the Gmail nodes, the option to take an existing draft and send it. What am I missing? Do I have to recreate the email and then send that?

Information on your n8n setup

  • n8n version: 1.91.3
  • Database (default: SQLite): Postgres
  • n8n EXECUTIONS_PROCESS setting (default: own, main): own
  • Running n8n via (Docker, npm, n8n cloud, desktop app): Docker
  • Operating system: Ubuntu

Hello @karatechopping

You’re right, there doesn’t seem to be an option to send a draft directly!

But no worries, I’ve got you covered!

We can still use a simple HTTP Request with the draft ID to send it.

First, create a draft using the Gmail node (or get your drafts) then, use the same Gmail OAuth2 credentials to send the draft via an HTTP Request to the endpoint:

https://gmail.googleapis.com/gmail/v1/users/me/drafts/send

In the request body, include the following JSON:

{
  "id": "YOUR_DRAFT_ID"
}

Here’s the working example workflow:

1 Like

Oh easy … I should have thought of that :slight_smile: Thank you

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.