My Contact Form Said "Sent." Two AI Agents Found Out It Wasn't.
By Tekin Kıvrak, cloud infrastructure engineer

I asked for something small: change the email address on my two websites. One is this blog. The other is the app I build for hair-transplant clinics. Both had an old Outlook address scattered around, and I wanted everything to point to one inbox.
I gave the job to two AI coding agents, one per codebase.
It took most of the day. Not because the change was hard, but because the change exposed something worse: neither contact form was reliably delivering anything. One of them had been telling visitors "Message Sent!" while nothing was sent. The other was failing with an error nobody had noticed.
Here's what happened, and the one habit I took away from it.
The Form That Lied
The app's contact form had two bugs stacked on top of each other.
The first was a validation rule: the message had to be at least 10 characters. Type "test" or "call me" and the server rejected the request. Reasonable enough, except the rejection wasn't handled, so it came back as a generic server error instead of "your message is too short."
The second bug is the one that matters. The page never checked the server's answer. It sent the form, then showed "Message Sent!" no matter what came back. Success, rejection, crash: same green checkmark.
So the visitor walks away thinking they've reached me. I never hear from them. Nobody gets an error. There is no log entry, no email, no row in a database. A lead just disappears.
The agent spent half a day hunting for "what's broken" before finding it, because from the outside nothing looked broken. That's the nature of a silent failure. It doesn't announce itself. It just quietly costs you.
The Form That Couldn't Send
The blog's form was broken differently.
After the address change went live, I filled in the form myself. No email arrived. The agent sent a test request directly and got a server error back. The cause turned out to be almost boring: the key that lets the site send email through the mail service had never been set on the blog's hosting. Without it, sending fails before it starts.
While fixing that, the agent found a quieter problem in the same code. When the mail service rejects a message, it doesn't throw an error. It returns one, politely, and expects you to look. The code didn't look. So even with a key in place, a rejected email would have shown the visitor a success message. Same silent failure as the app, just waiting for a different trigger.
That one I would never have found by reading settings. It only shows up when you know how the tool behaves when things go wrong.
Two Agents, One Problem
The part I didn't expect was watching the two agents work together.
They were running in separate sessions on my machine, each in its own codebase. At some point the app's agent started sending messages to the blog's agent. Not vague encouragement. Specific findings: "I had the same 500 today, here's the line that caused it, check whether yours is the same."
It wasn't the same, and the blog's agent said so, with reasons. That exchange narrowed the problem fast.
The app's agent had access to the mail service, so it checked things the blog's agent couldn't: that my domain was verified, and that the blog had never successfully sent a single email from the new address. That evidence pointed straight at the missing key.
Two moments stood out to me.
First, when the obvious shortcut was to pass the working key from one project to the other, the agent refused to send the key itself. It told me to create a separate key for the blog instead, so that a problem on the blog could never take down the appointment reminders the app sends to patients. That's the call a careful engineer makes, not a fast one.
Second, they corrected each other. The app's agent warned about a known trap in the mail library where one field gets silently dropped. The blog's agent checked the library's source and pointed out the warning applied to an older version, not the one we were using. The app's agent accepted that and noted its own documentation was out of date.
Neither agent was always right. Together, they were right faster than either alone.
What I Still Had to Do
The agents couldn't log into my hosting dashboard or my mail service. So the final steps were mine: create the key, add it to the blog's settings, redeploy.
And I nearly got it wrong. I opened the hosting dashboard, created a key, and proudly pasted the confirmation into the chat. It was the wrong service entirely: a key for the hosting provider's AI gateway, nothing to do with email. The agent caught it in one line and walked me to the right place.
I also got confused when the app's existing key showed up as empty in the dashboard. It wasn't empty. The dashboard just never shows a saved secret again. The agent asked the other agent, which confirmed from the code that the key had to be there, because the app had sent three emails with it that same day.
The lesson there is humbling: the weakest link in the setup wasn't the AI. It was me, clicking through dashboards I rarely visit. Which is exactly the kind of work I was happy to hand off in the tasks I still do manually, and exactly where I should slow down.
The Habit: Run the Path, Don't Read the Setting
If I keep one thing from this day, it's a sentence the app's agent wrote while verifying its own fix:
"A setting can look right while the email goes somewhere else. The delivery record can't lie."
Every time this day went sideways, it was because something looked fine. The form said "sent." The settings had the right address. The dashboard showed the key field. All of it was surface.
Every time it moved forward, it was because someone actually ran the thing. Send a real message. Check the mail service's own record of what happened to it. Then check the inbox, including spam, because "delivered" only means the receiving server accepted it.
Here's the check I now run after any change to a form, a signup flow, or anything that's supposed to reach me:
- Submit it myself, from the live site, like a visitor would.
- Try the edge cases: an empty field, a very short message.
- Confirm it arrived in the inbox, not just that the page said thanks.
- If something fails, make sure it fails loudly: an error the visitor sees and a log I can find later.
Five minutes. It would have saved me a day, and who knows how many messages from people who thought they'd reached me.
What Changed on This Site
The blog's contact form now delivers to my real inbox. If sending fails, the visitor sees an error instead of a fake thank-you, and the message is written to my logs so I can still recover it. The message field is optional now too. If someone leaves only a name and an email, that's enough for me to reply. Rejecting them for not writing a sentence was the silliest way to lose a conversation.
And if you've ever sent me a message through this site and never heard back: I'm sorry. It may never have arrived. Try again. This time I've checked.
For more on where AI genuinely helps and where judgment still has to be yours, see what I learned letting AI plan my week and why the real divide is judgment, not access.
Was this article helpful?
Related Posts

AI & Tech · 6 min
I Let AI Plan My Week for 30 Days. Here's What I Learned.
I handed my weekly planning to AI for 30 days. What worked, what broke, and the one thing AI still can't do no matter how good your prompt is.

AI & Tech · 8 min
When Not to Use AI: 5 Tasks I Now Do Manually on Purpose
AI can do almost everything for you. That's exactly the problem. Five tasks I now keep manual; not out of nostalgia, but because outsourcing them costs more than it saves.

AI & Tech · 9 min
ChatGPT vs Claude: An Honest Comparison for Coding
I've used both ChatGPT and Claude extensively for coding and thinking work. Here's my honest take on where each one shines, and where it falls short.

AI & Tech · 6 min
5 AI Tools I Actually Use as an Entrepreneur
The five AI tools I use daily to run my work, what each one is actually good for, and the one-tool-at-a-time method that makes them stick.
Explore more topics: