Works with v0

Wire up email to your v0 component.

v0 generated the UI. JS2Mail routes submissions to your inbox. One attribute change — your contact form works for real.

Get your endpoint free See the docs
01
Connect your mailbox
Sign in with Gmail or Microsoft 365 — one click. Or bring any SMTP host. Takes 60 seconds.
02
Copy your endpoint URL
JS2Mail gives you a unique URL. That's your form's action= value. Nothing else changes.
03
Get real email
Every submission lands in your inbox as a normal email thread. Reply directly to your visitor.

The HTML. That's it.

Copy, paste, replace YOUR_ID with your endpoint ID.

contact.html No backend. No server. No SMTP.
<form action="https://api.js2mail.dev/f/YOUR_ID"
      method="POST">
  <label>Name
    <input name="name" required>
  </label>
  <label>Email
    <input name="email" type="email" required>
  </label>
  <label>Message
    <textarea name="message"></textarea>
  </label>
  <!-- honeypot — stops bots silently -->
  <input name="_honey" style="display:none" tabindex="-1" autocomplete="off">
  <button type="submit">Send</button>
</form>
Submissions arrive in your inbox as real email threads — from your own connected mailbox.
Or paste this into v0
Update the contact form so that action="https://api.js2mail.dev/f/YOUR_ID" and method="POST". Add a hidden honeypot field: <input name="_honey" style="display:none" tabindex="-1" autocomplete="off">. Do not change any styles or layout.

Replace YOUR_ID with the endpoint ID from your JS2Mail dashboard.

Ready to connect your v0 site?

Free plan includes 10,000 sends per month. No credit card required.

Start free — get your endpoint
Already have an account? Sign in