Templates / Send Gmail messages with custom aliases and attachments via API

Send Gmail messages with custom aliases and attachments via API

Ready for 3.0

by Jacob @ vwork Digital · 1,290 views · created 2025-07-02 · Personal Productivity

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This workflow has 6 nodes and runs when an HTTP POST request hits its webhook URL. It uses only n8n's built-in nodes. It also calls gmail.googleapis.com over HTTP.

How it runs

Trigger: When an HTTP POST request hits its webhook URL.

  1. If: checks a condition and branches into true / false
  2. Split Out: splits a list into separate items
  3. Download Attachments (HTTP Request): calls an HTTP API
  4. Format Email Payload (Code): runs custom JavaScript code
  5. Send Gmail as Alias (HTTP Request): calls gmail.googleapis.com (POST)

HTTP calls to: gmail.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.

Check at runtime on n8n 3.0
  • Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Informational: a static scan can't see the data, so test these on your own instance. Status above is unchanged.

Nodes used (5)

From the author

This n8n template allows you to send emails with a custom alias from your Gmail account Since the native Gmail node has some limitations regarding use of email aliases, this template allows you to set up your own internal endpoint/sub-workflow to send emails…

Excerpt from Jacob @ vwork Digital's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.