Make your Replit website contact form work without SMTP.
Copy this prompt into Replit
Replace YOUR_FORM_ID with the sandbox link from your FormRoost dashboard. Your design stays untouched.
- Replit Agent often wires forms to an in-memory array or an unfinished backend route that loses leads on restart.
- Sending email directly from Replit via Gmail SMTP frequently gets blocked or breaks with 2FA app passwords.
- Static Replit deployments have no backend runtime to receive POST requests unless you add an external service.
Typical allowed origins for Replit
- https://your-repl.replit.app
- https://your-preview.picard.replit.dev
- https://yourdomain.com
Connect my Replit form to FormRoost:
1. Keep my existing form design, layout, and fields exactly as they are.
2. Do not add Supabase, a database, Edge Functions, API routes, or an email service—send directly from the browser using fetch POST to:
https://formroost.com/s/v1/sandbox/YOUR_FORM_ID
with Content-Type: application/json and credentials: 'omit'.
3. Keep all client-side form validation intact and send the form fields as a flat JSON object.
4. Add a visually hidden _gotcha honeypot input so spam bots get caught automatically.
5. Show a clear thank-you message on 201 Created and friendly inline errors on 422 or failure.Four steps from Replit to live leads
Nothing goes live until you click Publish in FormRoost.
- 1
Get your free FormRoost sandbox link
Sign up free at FormRoost, create a project for your Replit site, and create a form to grab your /s/v1/sandbox/fpub_... link.
- 2
Add your Replit URL to Allowed browser origins
In FormRoost under Acceptance rules → Allowed browser origins, paste your Replit preview URL (.replit.dev) and your deployed URL (.replit.app or custom domain).
- 3
Paste the prompt into Replit Agent
Tell Replit Agent to send the form directly to your FormRoost sandbox URL using the prompt above—no Express/Python email code needed.
- 4
Verify in sandbox and publish
Submit a test message on your Replit preview and confirm it arrives in your FormRoost sandbox inbox. Click Publish to production in FormRoost and update sandbox to production.
Helpful tips & what to know upfront
Replit tips
- Replit preview tabs use a dynamic .replit.dev URL while your live site uses .replit.app or your custom domain—copy the exact preview origin from the browser address bar when testing.
- If you do want to submit from a Replit Python/Node server instead of the browser, FormRoost also gives you server API keys under Project → API keys.
- Built-in lead inbox statuses (New, In progress, Qualified) let you track inquiries right inside FormRoost without building an admin panel in Replit.
Good to know upfront
- Free forever up to 50 real leads/month with unlimited 7-day sandbox testing and zero credit card required.
- Email alerts on new real leads and signed webhooks are included on every plan.
- No file uploads yet—best for contact, quote, booking request, and waitlist forms.
Other AI website builder guides
View all AI guides →Ready to connect your Replit form?
Start free with 50 real leads a month and unlimited sandbox testing. No payment card required.