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.

Caio Rodrigues Caio Rodrigues I'm a full-stack developer focused on building practical and scalable web applications. My main experience is with **React, TypeScript, and modern frontend architectures**, where I prioritize clean code, component reusability, and maintainable project structures. I have strong experience working with **dynamic forms, state management (Redux / React Hook Form), and complex data-driven interfaces**. I enjoy solving real-world problems by turning ideas into reliable software that companies can actually use in their daily operations. Beyond coding, I care about **software quality and architecture**, following best practices for componentization, code organization, and performance optimization. I'm also comfortable working across the stack when needed, integrating APIs, handling business logic, and helping transform prototypes into production-ready systems. My goal is always to deliver solutions that are **simple, efficient, and genuinely useful for the people using them.** Simon A. Simon A. I'm a backend developer building APIs, emulators, and interactive game systems. Professionally, I've developed Java/Spring reporting solutions, managed relational and NoSQL databases, and implemented CI/CD workflows. Jen Jacobsen Jen Jacobsen I’m a Full-Stack Developer with over 10 years of experience building modern web and mobile applications. I enjoy working across the full product lifecycle — turning ideas into real, well-built products that are intuitive for users and scalable for businesses. I particularly enjoy building mobile apps, modern web platforms, and solving complex technical problems in a way that keeps systems clean, reliable, and easy to maintain. 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. Jaime Orts-Caroff Jaime Orts-Caroff I'm a Senior Android developer, open to work in various fields Matthew Butler Matthew Butler Systems Development Engineer @ Amazon Web Services Richard McSorley Richard McSorley Full-Stack Software Engineer with 8+ years building high-performance applications for enterprise clients. Shipped production systems at Walmart (4,000+ stores), Cigna (20M+ users), and Arkansas Blue Cross. 5 patents in retail/supply chain tech. Currently focused on AI integrations, automation tools, and TypeScript-first architectures. Meïr Ankri Meïr Ankri Full-stack developer specializing in React / Next.js / Node.js with 6+ years of experience. I've worked across various sectors including automotive (Reezocar/Société Générale), healthcare (Medical Link SaaS), and e-commerce (Glasman). I build web apps end-to-end, from architecture to production, with a focus on scalability, performance, and code quality. I also mentor junior developers and contribute to technical decisions and code reviews. prajwalfullstack prajwalfullstack Hi Im a full stack developer, a vibe coded MVP to Market ready product, I'm here to help Costea Adrian Costea Adrian Embedded Engineer specilizing in perception systems. Latest project was a adas camera calibration system.

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