# Gmail SMTP App Email for Supabase, Workers & Node

> Get a demo or small app sending real transactional email through Gmail SMTP with an App Password, safely. Includes tested setup scripts, code recipes for each runtime, and an outbox with retries.

Gmail SMTP App Email for Supabase, Workers & Node is a paid AI agent skill on Agensi by Nate Freed. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $5 (one-time purchase)
- Creator: [Nate Freed](https://www.agensi.io/creators/nate-freed)
- Version: 1.0
- Last updated: 2026-11-28
- Security: scan passed (2026-11-28); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/gmail-smtp-app-email-for-supabase-workers-node
- Tags: apis-backend, devops-cloud

## About this skill

Get a demo, prototype or small app sending real email today, with no domain or DNS setup. This skill walks your agent through the Gmail SMTP plus App Password workflow from start to finish. It covers creating the App Password (menu paths described in words), keeping credentials in environment variables and platform secrets, choosing port 465 or 587 for your runtime, and wiring the code for Node (nodemailer), Python (smtplib), Cloudflare Workers and Pages Functions (worker-mailer over TCP sockets), Supabase Edge Functions and Supabase Auth custom SMTP. Two standard-library Python scripts are included. The first tests your Gmail credentials and previews, logs in or sends one test email, and explains common Gmail errors (535, 534, 5.4.5, 421) in plain English. The second dry-runs, then applies, Supabase Auth's SMTP settings through the Management API, showing a masked field-by-field diff first. You also get a Postgres outbox with a lease, retries and a pause on auth failure, guidance on storing other users' app passwords encrypted (and better alternatives), deliverability basics, Gmail's sending limits, and clear signs that it's time to move to a dedicated email provider. Every step that reaches the outside world waits for your OK.

## Requires

- Python 3.8+ (standard library only)
- Gmail account with 2-Step Verification
- Gmail App Password (user creates it)
- Wrangler
- Node.js
- Optional: Supabase personal access token
- Optional: Supabase project ref
- Optional: nodemailer or worker-mailer in the app
- Optional: PostgreSQL or Supabase for the outbox
- Optional: Node 18+ for the JS recipes

## Known limitations

- Gmail's limits (roughly 500 recipients a day on personal accounts) rule this out for marketing or high volume. The skill explains when to move to a provider.
- The bundled scripts connect only to smtp.gmail.com and api.supabase.com (plus loopback for testing). They won't test other SMTP providers.
- The user has to create the App Password themselves. It requires 2-Step Verification, and it may be unavailable on managed work or school accounts.
- The nodemailer, worker-mailer and Edge Functions recipes are templates to adapt. They were syntax-checked, not run on those runtimes.
- Google's menus, Gmail's limits and Supabase's dashboard labels change over time, so check the current values before promising anything.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Gmail SMTP App Email for Supabase, Workers & Node skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### Is it safe to give my app password to the agent?

Keep it in an environment variable or your platform's secret store, not in chat. The scripts read it only from the environment and mask it in all output. They send it only to smtp.gmail.com, or, for Supabase Auth, inside one PATCH to api.supabase.com. Use a dedicated Gmail account for the app; you can revoke the app password at any time in your Google Account.

### Will it send email or change my Supabase project without asking?

No. Both scripts default to dry runs. A real login or send needs --login-only or --send, and the Supabase change needs --yes. The skill tells the agent to show you the dry run and wait for an explicit OK before each of those.

### Can I use this in production?

Yes, for low-volume mail that recipients expect, like confirmations and receipts. Personal Gmail allows roughly 500 recipients a day, and going over can block sending for up to 24 hours. The skill lists the signs that it's time to move to a transactional email provider with a verified domain, and the recipes read SMTP settings from env vars, so switching is a config change.

### Does it work on Cloudflare Workers and Supabase Edge Functions?

Yes. Workers send through worker-mailer over TCP sockets on port 465 (port 25 is blocked there), and Edge Functions also need port 465. The outbox pattern is sized for Cloudflare's free-plan subrequest limit.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
