Toimii has soft launched — the service is live and sign-ups are open. Try it free →

Toimii has soft launched, so these guides describe a service you can sign up for and use today. A few pieces are still on the way — the iOS and Android apps arrive later in 2026.

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.

<!-- Add this anywhere on your page -->
<script src="https://cdn.toimii.io/components/your-code.js" async></script>
<toimii-your-code></toimii-your-code>
Does this actually work?

Yes — and this is the simplest case. Plain HTML has no plugin sandboxing, no editor strips scripts, no plan tier. The two lines work anywhere you can save and upload an .html file.

Step by step

1
Open your .html file
Open the .html file you want the form on, in a plain text editor.
2
Paste the embed code
Paste the two lines from your Toimii dashboard inside <body>, exactly where you want the form to appear.
3
Save and upload
Save the file and upload it the way you normally publish. Then open the published page and send yourself a test message.

Gotchas

  • Both lines or neither: the script defines the element, the tag places it. Paste the tag alone and the browser draws nothing, with no error to find.
  • A word processor swaps straight quote marks for curly ones. The browser then reads the curly marks as part of the address, so the script never loads. Use a plain text editor.
  • If you set a Content-Security-Policy — as an HTTP response header or a <meta> tag — allow cdn.toimii.io in script-src and api.toimii.io in connect-src. script-src covers loading the component; connect-src covers submitting the form. Most plain HTML pages have no CSP at all.

Frequently asked

Do I need a backend or PHP?

You don't need a server of your own. 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 renders, but nothing you send arrives. Submissions are accepted only from the domain you listed in Toimii, and a page opened from disk has no domain to match — the send fails with a generic error. Check the layout from disk; test sending on the uploaded page.

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.