GS

    Gmail SMTP App Email for Supabase, Workers & Node

    by Nate Freed

    1

    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

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned

    Works with the AI Agents you already use

    GS

    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.

    1. 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.

    2. 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. 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. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 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
    GmailSupabaseGmail account with 2-Step Verification
    Software
    Python 3.8+ (standard library only)Gmail App Password (user creates it)WranglerNode.js
    Optional
    Supabase personal access tokenSupabase project ref
    nodemailer
    orworker-mailer in the app
    PostgreSQL
    orSupabase for the outbox
    Node 18+ for the JS recipes

    Permissions

    Terminal / Shell
    Read Files
    Write Files
    Network Access
    Environment Variables

    Allowed Hosts

    smtp.gmail.com
    api.supabase.com

    File Scopes

    The
    user's
    project
    folder:
    reads
    code
    and
    .gitignore;
    writes
    mail
    a
    .example
    env
    file
    migrations
    after
    the
    user
    agrees
    This
    skill's
    folder
    (read
    only)

    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,

    Listed7 days ago

    What's inside

    Creator

    N

    Nate Freed

    24 skills on Agensi

    Frequently Asked Questions

    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.

    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.

    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.

    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.

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse All Claude Skills.