Skip to content

js2mail/example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

JS2Mail Examples

Ready-to-use contact form templates powered by JS2Mail — the form backend built for AI-generated sites.

No server required. Paste your form ID, open in a browser, done.


Examples

# Name Stack Form style
01-saas-landing SaaS Landing Page Tailwind CDN Standard POST + redirect
02-bento-portfolio Bento Portfolio Tailwind CDN AJAX + toast
03-bootstrap-contact Bootstrap Contact Page Bootstrap 5 CDN AJAX + inline alert

Quick start

1. Get a JS2Mail form endpoint

1. Sign up at https://js2mail.dev (free, takes 30 seconds)
2. Connect any mailbox (SMTP, Gmail, or Outlook)
3. Create a Form Endpoint → copy the public ID

2. Drop it into any example

Open index.html in your chosen example and replace YOUR_FORM_ID:

<form action="https://js2mail.dev/f/YOUR_FORM_ID" method="POST">

3. Open in a browser

No build step. No npm install. Works on any static host (GitHub Pages, Vercel, Netlify, S3, Cloudflare Pages).


Form options (hidden fields)

Add these anywhere inside your <form> to customise behaviour:

Field Effect
<input type="hidden" name="redirect_url" value="https://…"> Redirect after submit instead of JSON
<input type="text" name="_honey" style="display:none"> Honeypot — JS2Mail auto-discards filled submissions

Built with AI?

These templates are designed to drop into AI-generated sites from Lovable, v0, Bolt, or any other AI builder.

If you built something with JS2Mail, submit a PR! We'd love to showcase it.

Contributing: copy an existing folder, tweak the design, update the README, and open a pull request.


License

MIT — use freely in personal and commercial projects.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages