You signed up to your own app with a test account. The screen said "check your email to confirm your account". No email arrived. You waited, tried again, checked spam. Nothing. The app works, the database is fine, and nobody can complete signup.
Or the worse version: the email does arrive, but only for you. Your customers on Gmail get nothing at all, or it lands in spam with a red warning banner. You only find out when someone asks why they never got their receipt.
This happens constantly with apps built using AI tools, and it happens for a reason that has nothing to do with the code. Email is one of the few things your app does that depends on settings nobody wrote code for. Here is what is actually going wrong, how to check it, and what to fix.
First, work out which of two problems you have
Email from an app fails in two completely different ways, and the fixes are different.
Problem one: the email is never sent. Your app calls a send function, the call fails or is never made, and nothing leaves the building. You usually see this with signup confirmations, password resets and contact forms, because those are the emails a user triggers themselves and will immediately complain about.
Problem two: the email is sent but never received. It leaves your email provider's servers and then quietly disappears into a spam folder or gets rejected by Gmail or Outlook without telling you. You see this with receipts, notifications and anything that looks mass-produced.
The test for which one you have is simple. Send yourself a test email, then check two places: the spam folder in your own inbox, and the logs in your email provider's dashboard. Providers like Resend, Postmark, SendGrid and Loops all show you a list of every message with a status: delivered, bounced, or marked as spam. If the dashboard says delivered and you still cannot find it, you have problem two. If the message is not in the dashboard at all, you have problem one.
Problem one: the email was never sent
AI tools make sending email look like a one-line job, and in the demo it is. The trouble is what sits around that one line.
Nobody is in the "from" address. A lot of AI-generated code sends from something like [email protected] or [email protected], the provider's shared test sender. This works in development because providers let you send to your own verified email address for free. In production, the provider refuses to deliver to anyone else until you verify your own domain, which means adding DNS records and switching the "from" address to your domain. Many founders never do this step, so every real customer's email silently fails.
The API key is missing in production. The AI wired up the email provider with a key from your local .env file. When you deployed, the environment variable was never added to the hosting dashboard, so the send call fails at runtime. The signup itself succeeds, which is why the app appears to work. Check your server logs or your provider's dashboard: if there are zero sent messages on days when people signed up, this is probably it.
The failure is swallowed. Generated code often wraps the send call in a try/catch that logs and moves on, because the signup must not break just because email did. That is the right instinct with the wrong result: the user gets "check your inbox" while the inbox stays empty. If you can see nothing else wrong, temporarily remove the try/catch around your send call, run a signup, and read the error.
Problem two: the email arrives in spam, or not at all
When an email from your app reaches Gmail and Gmail decides where it goes, it is judging the sender, not the content. A brand-new domain with no history gets almost no trust, and the three DNS records below are how you earn it.
SPF is a record that says which servers are allowed to send email as your domain. If your app sends through Resend but your SPF record does not mention Resend's servers, Gmail has no proof the email is really from you.
DKIM is a cryptographic signature. Your email provider publishes a public key in your DNS, signs every message, and receiving servers check the signature. It is the strongest of the three signals.
DMARC tells receiving servers what to do when SPF or DKIM fail. Even a "monitor only" DMARC record shows the major providers you have done the basics. Google and Microsoft now expect all three from bulk senders, and apps that send signup confirmations count.
Every reputable email provider has a setup page that walks you through adding these records, usually by pasting in two or three values. The records go into the DNS settings wherever you bought your domain. They take effect within minutes to a day, and the provider's dashboard will show you when each one verifies.
Two things founders get wrong here. First, the records must go on the domain you are sending from, not the domain you are sending to. Second, if you send from a subdomain like mail.yourapp.co.uk, the records go on that subdomain. If your provider's verification check stays red after an hour, you probably pasted the records into the wrong place.
The free workaround that breaks quietly
A common shortcut is to have the app send email through a personal Gmail account. It works for a few weeks, then fails. Google restricts "less secure" sending, rejects it with password errors, and caps the volume far below what a real app needs. If your contact form stopped working one day with no code change, this is the likeliest cause.
Another one: the AI hardcodes a testing address as the recipient, or sends everything to the address it saw in your prompts. Check the actual recipient on a live send before launch day. It sounds too obvious to happen, but it happens.
How to test your email before launch
You do not need any tools beyond an inbox.
Trigger every email your app can send: signup confirmation, password reset, receipt, contact form. Write down the list first, because AI-built apps often have email flows the founder has forgotten about, such as an admin notification when an order comes in.
Send each one to at least two addresses: a Gmail account and an Outlook or Hotmail account. They judge senders differently, and an email that arrives in Gmail can bounce at Microsoft.
Check the spam folder at both. If it is in spam at Gmail but inboxed at Outlook, your SPF or DKIM is incomplete rather than absent.
Send the same email twice, a minute apart, and again an hour later. Duplicate sends are a real test: users double-click buttons, and if the AI did not guard against it, a customer gets two receipts for one payment. That is a code problem rather than a deliverability one, and it is worth catching now.
Look at the message headers in Gmail ("Show original") and search for SPF and DKIM. Both should say pass.
A note on volume
Newly verified domains have no sending reputation, and reputation is built by history. If your launch plan involves emailing several hundred people in the first hour, expect some of it to be treated as suspicious regardless of how correct your DNS is. Warm up gradually: real signups, real receipts, and let a few weeks pass before anything that looks like a bulk send. Low volume at first is not a problem to fix, it is a stage to go through.
Why this matters more than it looks
Broken email is rarely just an inconvenience. On most AI-built apps, email is the thing that stands between a new user and their account. If signup confirmations and password resets are unreliable, every acquisition channel you pay for leaks at the last step, and the failure is invisible in your analytics because the user simply leaves.
It is also one of the checks that needs someone who has seen it before. Our free surface check looks at your domain's email protection settings from the outside, among other things anyone on the internet can see, and it takes a couple of minutes. For the full picture before launch, the launch-readiness audit runs your app past a developer against 137 points in 14 areas, and every finding comes with the fix in plain English.
If you run only one test after reading this, make it the password reset. Trigger it on the live app from an incognito window using a Gmail address you can check. That single flow touches your email provider, your DNS records, your auth setup and your error handling at once, and it is the flow a locked-out customer will try first.