---
title: "Discussion on \"How to add a contact form to Astro\" | Hashnode"
description: "Discussion on \"How to add a contact form to Astro\". Learn how to add a working contact form to an Astro site, configure allowed origins, publish it, and receive submissions with PostMyForm."
url: "https://hashnode.com/posts/how-to-add-a-contact-form-to-astro/6a6c29690d655334da008731"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to add a contact form to Astro](https://postmyform.hashnode.dev/how-to-add-a-contact-form-to-astro?utm_source=hashnode&utm_medium=feed)

Learn how to add a working contact form to an Astro site, configure allowed origins, publish it, and receive submissions with PostMyForm.

Jul 31 · 4 min read · postmyform.hashnode.dev  
Read the article

-   [#astro](https://hashnode.com/tag/astro)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#html](https://hashnode.com/tag/html)
-   [#tutorial](https://hashnode.com/tag/tutorial)

## Written by

[PostMyForm](https://hashnode.com/@postmyform)

@postmyform

  
[View profile](https://hashnode.com/@postmyform)

PostMyForm is a privacy-conscious form backend for static websites. Create a form endpoint, paste the generated HTML into your site, and receive submissions without building or maintaining a server. We publish practical guides for GitHub Pages, Astro, and other static-site platforms.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
