Contact Form

1 Object type

Follow the steps below to install this Block. Make sure you have reviewed the getting started steps.
This will create the form-submissions Object type in your Bucket.
This will add the ContactForm.tsx and actions.tsx server actions file and components to your blocks folder located in cosmic/blocks/contact-form.
Import the block into your app.
Add the block component.
We will use the Resend email service to send emails (installed automatically). Learn more about sending emails with Resend on the Resend website. Add the following keys to the `.env.local` file. Change the values to your Resend key and email that you would like to receive the form submissions. Find your Resend API key in the Resend dashboard.
Create a new file at app/contact/page.tsx and add the following code. Then go to http://localhost:3000/contact to see the form.
footer logo