Gmail SMTP App Email for Supabase, Workers & Node
by Nate Freed
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.
$5
Gmail SMTP App Email for Supabase, Workers & Node
Example session with this skill installed
My Next.js demo on Cloudflare Pages uses Supabase Auth, and signup confirmation emails stop after a couple an hour. Make them go out through a Gmail account I set up for the demo. I've already exported SMTP_USER, SMTP_PASS, SUPABASE_ACCESS_TOKEN and SUPABASE_PROJECT_REF in my shell.
- Read your context and instructions
- Compiled the gmail smtp app
Gmail fits here: it's a demo, the volume is low and testers expect the email. Your Supabase emails stall because the built-in mailer only allows a few per hour, so I'll point Auth's custom SMTP at your Gmail account.
-
Credential check (dry run, no network)
Server: smtp.gmail.com:465 (implicit TLS)
Login: yourapp@gmail.com (from SMTP_USER)
Password: <set, 16 chars, masked> (from SMTP_PASS)
From: Demo App yourapp@gmail.com Subject: Demo App: email test
Dry run OK. -
Supabase Auth change (diff from one read-only GET)
external_email_enabled true -> true
smtp_admin_email <empty> -> yourapp@gmail.com
smtp_host <empty> -> smtp.gmail.com
smtp_port <empty> -> 587
smtp_user <empty> -> yourapp@gmail.com
smtp_pass <not set> -> <new value, 16 chars, masked>
smtp_sender_name <empty> -> Demo App
smtp_max_frequency 60 -> 5 (for testing; raise back to 60 later)
rate_limit_email_sent 2 -> 20 (well under Gmail's ~500/day)
DRY RUN: nothing was changed.
I need two OKs before I go further
a) log in to Gmail and send one test email to your inbox (--send)
b) send this one 9-field PATCH to your project (--yes)
After that: sign up with a fresh address, check spam, and make sure the Site URL and redirect URLs match your deployed domain. Later, if signups approach the daily cap or you need your own domain in From, move to a transactional email provider.
Connects securely to your tools. The creator never sees your data.
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.
- 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
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 7 days ago
- Accounts
Gmail
SupabaseGmail account with 2-Step Verification
- Software
Python 3.8+ (standard library only)Gmail App Password (user creates it)Wrangler
Node.js
- Optional
- Supabase personal access tokenSupabase project refnodemailerorworker-mailer in the appPostgreSQLorSupabase for the outboxNode 18+ for the JS recipes
Permissions
Allowed Hosts
File Scopes
Credentials are read only from environment variables and are never stored, logged or printed unmasked. smtp_test_send.py sends the Gmail login only to smtp.gmail.com, over TLS. supabase_auth_smtp.py sends the Supabase token, and the Gmail login inside its single settings PATCH, only to api.supabase.com. HTTP redirects are refused, so the token can't be forwarded anywhere, and every host other than these two and loopback test stubs is refused. Only the SMTP fields of the Supabase GET response are read; the rest is discarded. SMTP_HOST is read only so the script can warn that it is ignored. Both scripts default to dry runs that send nothing and change nothing. A real send needs --login-only or --send, the Supabase change needs --yes, and the skill tells the agent to get the user's explicit OK before using either. Environment variables read: SMTP_USER, SMTP_PASS, GMAIL_USER, GMAIL_ADDRESS, GMAIL_APP_PASSWORD, SMTP_PORT, SMTP_HOST, SUPABASE_ACCESS_TOKEN, SUPABASE_PROJECT_REF, SENDER_NAME,
What's inside
Frequently Asked Questions
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse All Claude Skills.