2. Connect your forms
What you get: submissions and messages arrive in your email: the three forms on your site (Submit a listing, Contact, and Report an issue) email you what visitors send. Until then, the forms tell visitors they aren’t connected yet, rather than pretending to send.
You need: step 1 (Put your site online), and a free Formspree account (or a form service you already use).
Setting up in your browser instead? Start here → 6. Connect your forms.
Why a form service
Section titled “Why a form service”Your site doesn’t send email itself. A form service receives what visitors type into your forms, and emails it to you. Formspree is recommended: it’s free for 50 submissions a month, and it works with the optional extras (Automatic submissions and Sponsorship payments).
With the setup
Section titled “With the setup”Run npm run setup and choose Connect your forms. It asks:
- Which form service. Choose Formspree, or I already use another service (Web3Forms, Netlify Forms, or your own form address).
- For Formspree, it opens Formspree when you press Enter. Make a form there, named after your
directory (Formspree’s help),
and copy its endpoint: the address that starts with
https://formspree.io/f/. - Whether to use one form for all three forms on your site. Yes is simplest. Otherwise the Contact form (and Report an issue) gets its own, kept under Settings → Forms → Advanced in the editor.
- To paste the form’s address. It checks the address answers.
- To put the change live (about 2 minutes).
Choose a form service
Section titled “Choose a form service”| Service | Free plan | Visitors without JavaScript | Automatic submissions and Sponsorship payments |
|---|---|---|---|
| Formspree | Yes | Sent to your thank-you page only on a paid plan | Yes |
| Web3Forms | Yes, redirect included | Yes | Only on a paid plan |
| Netlify Forms | Netlify hosting only | Yes | No |
| Your own form address | Yours | Yours | Yes |
By hand
Section titled “By hand”In the editor: Settings → Forms. Or in src/config/settings/forms.json, the file that page saves:
{ "provider": "formspree", "endpoint": "https://formspree.io/f/abcd1234", "accessKey": "" }One form serves all three. To send the Contact form (and Report an issue) somewhere else, give it its
own under advanced:
{ "provider": "formspree", "endpoint": "https://formspree.io/f/abcd1234", "accessKey": "", "advanced": { "contact": { "provider": "formspree", "endpoint": "https://formspree.io/f/wxyz5678" } }}(forms.submit and forms.contact in src/config/directory.config.json are the fallback, used only
if the settings file can’t be. forms.report there gives Report an issue a form of its own, and
fileUploads turns on file uploads for a paid Formspree plan.)
Web3Forms: set provider to "web3forms" and accessKey to your key. The key is public, so it’s
fine in the file.
Netlify Forms: set provider to "netlify", then turn on form detection in Netlify’s dashboard.
Then put the site live again (npm run deploy), or, once the site builds from GitHub, save and push.
Try it
Section titled “Try it”Send one message through each form on your live site, with your own email address. Each arrives in your email within a minute or two (check your spam folder the first time). The setup’s next steps list the addresses.
One doesn’t arrive? Look in your form’s Spam folder in Formspree: its spam filter can keep a message there, and Formspree emails you only what reaches its inbox. Mark a real one as not spam. Look there now and then, too: the email about a submission or a paid booking can land there.
If something’s wrong
Section titled “If something’s wrong”Run npm run doctor. Its “Connect your forms” section names any form that isn’t connected, or that won’t work with
your host.