Send a message with an inline embedded image with Gmail
Ready for 3.0What this workflow does
This workflow has 6 nodes and runs manually, when you click “Execute workflow”. It uses only n8n's built-in nodes. It also calls thistleandrose.co.uk and googleapis.com over HTTP.
How it runs
Trigger: Manually, when you click “Execute workflow”.
- Message settings (Edit Fields (Set)): sets 4 fields: from, to, subject…
- Get image (HTTP Request): calls thistleandrose.co.uk
- Convert image to base (Extract from File): extracts data from a file (binary to propery)
- Compose message (Edit Fields (Set)): sets 1 field: raw
- Send message (HTTP Request): calls googleapis.com (POST)
HTTP calls to: thistleandrose.co.uk, googleapis.com
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (4)
- Manual Trigger
n8n-nodes-base.manualTrigger - Edit Fields (Set)
n8n-nodes-base.set - HTTP Request
n8n-nodes-base.httpRequest - Extract from File
n8n-nodes-base.extractFromFile
From the author
The built-in Gmail node doesn't yet support embedding images within the body of the email, but you can pull this off using the HTTP node, and this template shows you how. Requirements - A Gmail account How it works The workflow downloads an image, converts it…