Guides · Website builders

A WordPress contact form without a plugin

Paste one HTML form into a Custom HTML block. Messages land in an inbox with spam set aside, and your site sends no mail, so nothing ends up in a spam folder.

  • 5 minutes
  • No plugin
  • Free for 250 messages a month

Updated

Step 1 of 50%

Make this guide yours

Type your email and we create your inbox, then put its endpoint in every step. No password, no card.

  1. 1

    Before you start

  2. 2

    Step by step

    1. 1

      In InboxPanda, open Settings, then Messages in, and copy the HTML code. It's a form with name, email and message, already pointing at your inbox, with a hidden spam trap.

    2. 2

      In WordPress, open your contact page in the editor.

    3. 3

      Add a Custom HTML block where the form should go, and paste the code.

    4. 4

      Press Preview to see it in your theme, then Update or Publish.

    HTML
    <form action="https://inboxpanda.io/f/your-form-id" method="POST">
      <label>Name <input name="name" autocomplete="name" required></label>
      <label>Email <input name="email" type="email" autocomplete="email" required></label>
      <label>Message <textarea name="message" required></textarea></label>
      <!-- Spam trap: keep it hidden -->
      <input name="_honey" style="display:none" tabindex="-1" autocomplete="off">
      <button type="submit">Send</button>
    </form>
  3. 3

    Send visitors back to your site

    HTML
    <input type="hidden" name="_redirect" value="https://yoursite.com/thanks">
  4. 4

    Check it works

  5. 5

    Already using Contact Form 7, WPForms or Gravity Forms?

Questions

Do I need SMTP or a mail plugin?

Does it work on WordPress.com?

Can visitors attach a CV or a photo?

Is it free?

Keep going

All guides