---
title: "Connect WordPress forms to email"
canonical: "https://glueforms.com/docs/connect-wordpress"
language: "en"
description: "Add a contact form in a WordPress Custom HTML block and receive submissions with GlueForms."
---

# Connect WordPress forms to email

Receive contact messages from your WordPress page without installing an email plugin. You need permission to edit the page and save custom form HTML.

## Add the form to your page

1. In GlueForms, open [Forms](https://glueforms.com/app/forms), choose your form and copy its receiving URL. Select your form above, or replace `YOUR_FORM_URL` in the example.
2. In the WordPress page editor, add a **Custom HTML** block with `/html`. Paste the form below into its HTML editor.

```html
<form action="YOUR_FORM_URL" method="POST">
  <label>
    Name
    <input name="name" autocomplete="name">
  </label>
  <label>
    Email
    <input name="replyto" type="email" autocomplete="email" required>
  </label>
  <label>
    Message
    <textarea name="message" rows="4" required></textarea>
  </label>
  <button type="submit">Send message</button>
</form>
```

If WordPress removes the form when you save, ask your administrator to check the `unfiltered_html` capability. On Multisite, only Super Admins have that capability.

After acceptance, the browser opens the [thank-you page](https://glueforms.com/docs/thank-you-page) with status `200`, or follows a `303` [redirect](https://glueforms.com/docs/redirects) to the HTTPS URL saved in your form’s settings. With [JavaScript](https://glueforms.com/docs/javascript), request JSON and show your own confirmation after `accepted: true`. JSON receipts do not redirect automatically. The `replyto` field explicitly sets the address for replies to the notification.

Publish the page, submit the form and open the saved message in GlueForms to check the fields and email notification.

[WordPress Custom HTML documentation](https://wordpress.org/documentation/article/custom-html/).
