Where email fits in a Claude Code workflow
Claude Code is Anthropic’s coding agent. It works in your terminal, your editor and the browser, reads your codebase and makes changes across it. Ask for “email and password sign-up with verification” and you’ll get the forms, the API calls and the templates, wired to whatever you use: Supabase Auth, Clerk, Auth.js, Firebase or your own backend.
What it can’t easily do is receive the email. Unit tests mock the sender, and end-to-end tests often skip verification. So the first real confirmation email is frequently sent to the first real user.
Which login will it build?
Whichever you ask for. Most apps end up on Supabase Auth, Clerk, Firebase Authentication, Auth.js or Better Auth, and each sends different emails: Clerk sends a code by default, Firebase a link, and Auth.js only magic links unless you build the rest. Tell Claude Code the methods you want, such as “email and password with a confirmation code, plus Google”, then test each email it sends. Which emails each login service sends.
A five-minute end-to-end check
- Create an address in Proxy Mail QA. Make a few at once if you want one per scenario, such as new user, invited user and reset.
- Run your app (
npm run devor similar) and sign up with the address. - Watch the code or link arrive. It shows up on the address’s row within seconds, with a Copy button for a code or Open link and Copy link buttons for a link.
- Finish the flow. Paste the code into your app, or click the link. If the link points at
localhost:3000we flag it. That’s expected while you develop locally: choose This is my dev environment and it won’t be flagged again in that project. - Repeat on staging before you ship. Now a localhost link is a real bug, and the most common one in generated auth code. Here’s how to fix it.
Let Claude Code check the email itself
The Proxy Mail QA plugin adds the MCP server and nine skills that walk Claude Code through the job, from testing a sign-up end to end to finding out why an email didn’t arrive. In Claude Code, run these two commands, one at a time:
/plugin marketplace add aaquib90/proxymail-qa-plugin
/plugin install proxymail-qa@proxymail-qa
Then type /mcp, choose proxymail-qa and Authenticate. Your browser opens to sign in to Proxy Mail QA and choose the project Claude Code may use, with no API key to copy. For the MCP server on its own, run claude mcp add --transport http proxymail-qa https://api.proxymail.qa/mcp in a terminal instead and authenticate the same way; to use an API key, see MCP server setup.
Then ask in plain words: “Sign up on localhost:3000 with a new Proxy Mail QA address and confirm the email.” Claude Code creates the address, fills in your form, waits for the code or link and finishes the sign-up. It gets only the code or link, never the email’s text.
Hand Claude Code the evidence
When something is off, paste what you saw straight into your session. Specific beats vague:
- “The confirmation email on staging links to
http://localhost:3000/auth/confirm. Build the redirect URL from an environment variable and set it per environment.” - “The reset email says the link lasts 60 minutes, but it stops working after 5. Find where the expiry is set.”
- “Two verification emails arrive for one sign-up. Find the duplicate send.”
The inbox view shows each email’s sender, subject, full content and every link found in it, which is usually all the agent needs.
Before a release, ask for an inventory of everything the app sends:
List every email this app sends: sign-up confirmation, magic link, password reset, invite and email change. For each, tell me what triggers it, which URL its link points to, and how long its link or code stays valid. Flag anything that uses localhost.
Tips
- Tag your runs. Mail to
k3f9q2m8x7aa+run2@mailclub.devarrives in the same inbox with the tagrun2shown, so repeated runs stay distinguishable. - Keep the password with the account. Save the password you signed up with on the address, or use Generate a test password for one that passes common rules.
- Group by project. One project per app you’re building, with its staging URL linked and an optional prefix so its addresses are easy to spot.