11-Contact Setup
Key Objectives
To use Formspree to send messages to your email.
Video
Overview
In this module we use a tool called Formspree that will allow users to fill out a form and contact us. Formspree is a tool that makes it easy for us to hook up a contact form without having to build our own custom server (we'll do that at a future date). It's intended for very lightweight traffic.
Notes/Tips
Formspree can be finicky your first time setting it up. Use the code we give you.
We recommend that you use our code verbatim (even if the form styling doesn't fit your theme).
Do not worry about styling the form right now.
Steps
Go to the
module-10-formspreebranch.Do a
git pullto update the branch.Important, please watch the video for this section before proceeding.
When you use our code, PLEASE BE SURE TO CHANGE THE EMAIL ADDRESS. If you don't change the email, we will receive all of your test emails.
Again, feel free to use the exact code in our contact form.
If you want to do more with Formspree, reference their docs. You do not need to buy an account with them. Usually, taking in an email and a message works just fine.
Test the form and make sure it's working by running the app and entering a proper email.
When it works, commit the code.
Go to the next module.
Here's the final code.
index.htmlContact Section
Last updated