A static website (plain HTML) has no server code of its own, so a form on it has nowhere to send its answers. We receive them for you: the form posts to us, we check it is a person and not a bot, and we e-mail the answers to a mailbox on your website's own domain. The visitor's e-mail address is set as the reply address, so you just press Reply.
Before you start
You need a mailbox on the website's own domain (for example hello@yourdomain.com). Create one on the website's Email page if you have none. Forms can only send to an active mailbox on that domain, in your own account, so nobody can use your form to send mail anywhere else.
Switch forms on
- Open Sites and choose the website.
- Open Email and find the Website forms card.
- Turn on Accept form answers from this website.
The card then shows the Form address (action), the Bot check site key and a Starter form. Press the copy button beside Starter form, paste it into a page of your website, and change the questions to your own. Set _to to the part of your mailbox before the @.
How the form is built
- Each question is an input whose
name is the question as you want it to read in the e-mail.
_email is the visitor's address (used to reply), _name their name.
_next is the page they see after sending (for example /thanks/), _back the page they return to if something was wrong. Both must be pages on your own website.
- The
cf-turnstile box is the bot check. Keep it, with the site key from the card.
- Keep the hidden
_website field empty and hidden: bots fill it in, and we drop those.
The visitor also gets a short confirmation e-mail that does not repeat their answers.
Limits
One visitor can send 6 forms an hour. If your form asks about health or other sensitive matters, add a consent checkbox and a short privacy note to the page.
See the answers in your dashboard
Every answer is also kept for 90 days under Form submissions on the same Website forms card, newest first, then deleted automatically. Each entry shows when it arrived, the form's name, who sent it and every answer. If the e-mail to your mailbox could not be sent, the entry says so, so no answer is lost. Press Delete to remove an entry sooner; the e-mail already in your mailbox stays.
Switch forms off
Turn the switch off. From the next visitor on, the form is refused and nothing is sent. The site key stays the same, so switching back on later needs no change to your page.
Este artigo ainda não foi traduzido para o seu idioma, pelo que está a ler a versão em inglês.