Skip to content


There are a few different ways to handle forms in the Cosmic Themes’ website templates. You can do this the easy way, or the hard way…

Easy Form Submissions

The easiest way to add form submissions to your website (using the contact form already provided in the templates) is to use a tool where you just submit a POST request, and it handles the rest. I have a blog post on implementing a contact form in Astro using Basin which you’re welcome to use. Some form backend providers are:

At the time of writing - all of these support free plans, and are easy to set up.

More Complex Form Needs

If you have more complex requirements, you can implement serverless functions with Netlify or another provider, and use a service like SendGrid to send emails. I have a blog post on doing just that, which you can view here.