Bolt email

Contact Form Not Sending Emails in Bolt App

Your Bolt.new application has a contact form that appears to work perfectly: users fill it out, click submit, and see a 'Thank you, message sent!' confirmation. But the email never arrives. You only discover the problem when someone follows up asking why you never replied to their inquiry.

This is a devastating issue for business websites. Every missed contact form submission is a potential lost customer, partnership, or support request. The false success message makes it worse because the sender believes their message was received and doesn't try to contact you through other channels.

Bolt's AI often generates beautiful contact form UIs with client-side validation but doesn't properly implement the backend email sending logic. The form submits to an API route that either doesn't exist, doesn't actually send the email, or silently fails without error handling.

Error Messages You Might See

Error: Missing API key for email service 403 Forbidden: Sender domain not verified Failed to fetch: /api/contact returned 404 ResendError: You can only send to your own email in test mode SMTP Error: 550 Sender not authorized
Error: Missing API key for email service403 Forbidden: Sender domain not verifiedFailed to fetch: /api/contact returned 404ResendError: You can only send to your own email in test modeSMTP Error: 550 Sender not authorized

Common Causes

  • No backend email sending logic — Bolt generated the form UI and success message but the API route just returns 200 OK without actually sending an email
  • Email API key not configured — The code references an email service (Resend, SendGrid) but the API key environment variable is empty or missing
  • From address not verified — Email services require sender domain verification, and the 'from' address uses an unverified domain
  • API route doesn't exist — The form submits to /api/contact but the route file was never created, returning a 404 that the frontend doesn't check for
  • Frontend ignores API errors — The form shows the success message regardless of the API response status, masking all backend failures

How to Fix It

  1. Implement the API route — Create a proper email sending endpoint using Resend: import { Resend } from 'resend'; const resend = new Resend(process.env.RESEND_API_KEY); await resend.emails.send({ from: 'contact@yourdomain.com', to: 'you@email.com', subject, html })
  2. Verify your sending domain — In your email provider's dashboard, add and verify your domain by adding the required DNS records (SPF, DKIM, DMARC)
  3. Check API response before showing success — Update the form handler: const res = await fetch('/api/contact', { method: 'POST', body }); if (!res.ok) { setError('Failed to send. Please try again.'); return; } setSuccess(true);
  4. Add fallback notification — Store contact submissions in your database as a backup, so you never lose messages even if email delivery fails
  5. Test the full flow end-to-end — Submit the form and verify the email arrives, don't just check the API response status

Real developers can help you.

Dor Yaloz Dor Yaloz SW engineer with 6+ years of experience, I worked with React/Node/Python did projects with React+Capacitor.js for ios Supabase expert Costea Adrian Costea Adrian Embedded Engineer specilizing in perception systems. Latest project was a adas camera calibration system. Tejas Chokhawala Tejas Chokhawala Full-stack engineer with 5 years experience building production web apps using React, Next.js and TypeScript. Focused on performance, clean architecture and shipping fast. Experienced with Supabase/Postgres backends, Stripe billing, and building AI-assisted developer tools. legrab legrab I'll fill this later Pratik Pratik SWE with 15+ years of experience building and maintaining web apps and extensive BE infrastructure Franck Plazanet Franck Plazanet I am a Strategic Engineering Leader with over 8 years of experience building high-availability enterprise systems and scaling high-performing technical teams. My focus is on bridging the gap between complex technology and business growth. Core Expertise: 🚀 Leadership: Managing and coaching teams of 15+ engineers, fostering a culture of accountability and continuous improvement. 🏗️ Architecture: Enterprise Core Systems, Multi-system Integration (ERP/API/ETL), and Core Database Structure. ☁️ Cloud & Scale: AWS Expert; architected systems handling 10B+ monthly requests and managing 100k+ SKUs. 📈 Business Impact: Aligning tech strategy with P&L goals to drive $70k+ in monthly recurring revenue. I thrive on "out-of-the-box" thinking to solve complex technical bottlenecks and am always looking for ways to use automation to improve business productivity. Omar Faruk Omar Faruk As a Product Engineer at Klasio, I contributed to end-to-end product development, focusing on scalability, performance, and user experience. My work spanned building and refining core features, developing dynamic website templates, integrating secure and reliable payment gateways, and optimizing the overall system architecture. I played a key role in creating a scalable and maintainable platform to support educators and learners globally. I'm enthusiastic about embracing new challenges and making meaningful contributions. Milan Surelia Milan Surelia Milan Surelia is a Mobile App Developer with 5+ years of experience crafting scalable, cross-platform apps at 7Span and Meticha. At 7Span, he engineers feature-rich Flutter apps with smooth performance and modern UI. As the Co-Founder of Meticha, he builds open-source tools and developer-focused products that solve real-world problems. Expertise: 💡 Developing cross-platform apps using Flutter, Dart, and Jetpack Compose for Android, iOS, and Web. 🖋️ Sharing insights through technical writing, blogging, and open-source contributions. 🤝 Collaborating closely with designers, PMs, and developers to build seamless mobile experiences. Notable Achievements: 🎯 Revamped the Vepaar app into Vepaar Store & CRM with a 2x performance boost and smoother UX. 🚀 Launched Compose101 — a Jetpack Compose starter kit to speed up Android development. 🌟 Open source contributions on Github & StackOverflow for Flutter & Dart 🎖️ Worked on improving app performance and user experience with smart solutions. Milan is always happy to connect, work on new ideas, and explore the latest in technology. prajwalfullstack prajwalfullstack Hi Im a full stack developer, a vibe coded MVP to Market ready product, I'm here to help Prakash Prajapati Prakash Prajapati I’m a Senior Python Developer specializing in building secure, scalable, and highly available systems. I work primarily with Python, Django, FastAPI, Docker, PostgreSQL, and modern AI tooling such as PydanticAI, focusing on clean architecture, strong design principles, and reliable DevOps practices. I enjoy solving complex engineering problems and designing systems that are maintainable, resilient, and built to scale.

You don't need to be technical. Just describe what's wrong and a verified developer will handle the rest.

Get Help

Frequently Asked Questions

What is the easiest email service to set up with Bolt?

Resend is the simplest to integrate. Install it with npm install resend, create a free account at resend.com, get your API key, and add three lines of code to send emails. The free tier includes 3,000 emails per month.

Why does my contact form show success but no email is sent?

The most common cause is that the frontend shows a success message after the form submits without checking the API response. The API route either doesn't exist (404), doesn't have email sending logic, or throws an error that the frontend ignores. Always check response.ok before showing success.

Related Bolt Issues

Can't fix it yourself?
Real developers can help.

You don't need to be technical. Just describe what's wrong and a verified developer will handle the rest.

Get Help