---
title: "Connect Framer forms to email"
canonical: "https://glueforms.com/docs/connect-framer"
language: "en"
description: "Add a Framer Code Component contact form and send messages to email with GlueForms through a native HTML POST."
---

# Connect Framer forms to email

Add a contact form to your Framer page with a Code Component. Its standard HTML form sends directly to GlueForms, without a separate mail server.

## Connect the form

1. In GlueForms, open [Forms](https://glueforms.com/app/forms), choose your form and copy its receiving URL. Select it above, or replace `YOUR_FORM_URL` in the example.
2. Open **Assets**, choose **Code**, then **Create Code File**. Name the file `GlueFormsContact.tsx` and replace its content with this exported React component.

```javascript
import * as React from 'react';

export default function GlueFormsContact() {
  return (
    <form action="YOUR_FORM_URL" method="POST" style={{ display: 'grid', gap: 16, width: '100%' }}>
      <label>
        Name
        <input name="name" autoComplete="name" />
      </label>
      <label>
        Email
        <input name="email" type="email" autoComplete="email" required />
      </label>
      <label>
        Message
        <textarea name="message" rows={4} required></textarea>
      </label>
      <button type="submit">Send message</button>
    </form>
  );
}
```

3. Insert `GlueFormsContact` on the canvas, adjust its width and publish the page.

This setup uses a native HTML POST, not Framer’s **Send To → Webhook** destination.

A native submission opens the GlueForms JSON receipt in the browser. Use [JavaScript](https://glueforms.com/docs/javascript) to show a confirmation on your own page.

Publish the page and submit a message. Open it in GlueForms to check the field names, saved content and email notification.

Official documentation: [Framer Code Components](https://www.framer.com/developers/components-introduction), [Framer webhooks](https://www.framer.com/help/articles/framer-form-webhook-setup/).
