The simplest way to add a contact form to a plain HTML page
Two lines anywhere in <body>. No build step, no dependencies. If you can save and upload, you can do this.
<script src="https://cdn.toimii.io/components/your-code.js" async></script>
<toimii-contact></toimii-contact>
Step by step
Common gotchas
Frequently asked
Do I need a backend or PHP?
No backend needed. Submissions go straight from the form to Toimii's API — your HTML page can be served from anywhere, even a free static host.
Can I open the .html file directly with file://?
It depends on the browser. Chrome and Safari open .html files via file:// without trouble; Firefox blocks cross-origin scripts on file:// URLs. For reliable testing, run a tiny local server (npx serve, python -m http.server) and open http://localhost.
Will it work in CodePen, JSFiddle, or a sandbox?
Yes — paste the two lines into the HTML pane. The script will load and the component will render in the preview iframe.
Does it work offline?
The page loads, but the form needs network access to submit. If a visitor is offline, the page renders fine — they just can't send the message until they're back online.
Embedding on a different platform?
Same two lines of code, picked apart for each platform.
Ready to try it?
30-day free trial. No credit card. Set up in minutes.
No credit card required. Set up in 2 minutes.