🎉 Celebrate with 10% OFF on All Products! Use Code: GFEX10 Or Buy Any 2+ Items for 30% OFF with Code: GFEX30!
Guides & Tutorials October 29, 2026

How to Turn Emails into Gravity Forms Entries (IMAP Mailbox or Inbound Webhook)

GravityExtra
How to Turn Emails into Gravity Forms Entries (IMAP Mailbox or Inbound Webhook)

Not every enquiry arrives through your website form. Listing portals and marketplaces forward leads as emails. Booking platforms, suppliers and older order systems send a confirmation email and nothing else. Customers reply to a quote, write to your support address or forward a document. All of that ends up in an inbox, where somebody has to copy names, phone numbers and order numbers into your system by hand, and where it never reaches the CRM, the email list or the spreadsheet your Gravity Forms feeds already fill. The Gravity Forms Email to Entry add-on closes that gap: every email you choose becomes a normal Gravity Forms entry, automatically.

This tutorial explains how it works and how to set it up: the two ways to bring emails in (an IMAP mailbox or an inbound email webhook), filters that keep only the right emails, mapping the email and the values written inside it to your fields, attachments, and what happens after each entry is created.

Why turn emails into form entries?

Gravity Forms is already the place where your submissions live. Entries can be searched, filtered, exported, assigned and printed; notifications tell the right people; add-on feeds pass the data to your CRM, help desk, email marketing tool, spreadsheet or automation platform such as Zapier or Make. When some of your leads and requests arrive by email instead, they miss all of that. Typical examples:

  • Portal and marketplace leads – property portals, job boards, directories and comparison sites that only send an email with the enquirer’s name, email address, phone number and message.
  • Orders and bookings from other systems – confirmation emails from a shop, a booking engine or a supplier with an order number and a total, but no API you can connect to.
  • Requests sent to an address – a support or sales address that customers write to directly, which you want handled in the same workflow as the contact form.
  • Replies and documents – a customer replies “yes, go ahead” to a quote, or emails the signed form and the photos you asked for.

Turning these emails into entries means one place for everything, the same notifications and the same integrations, and no more copy and paste.

Two ways to bring emails in

Each form can have one or more mailbox feeds under Settings → Email to Entry. A feed brings emails in one of two ways.

1. Read an IMAP mailbox on a schedule

Almost every email account speaks IMAP: hosted mailboxes, cPanel email, business email suites and personal accounts with an app password. You enter the server name, port, security (SSL/TLS or STARTTLS), username and password, and the folder to read. The password is stored encrypted with your site’s own keys. The add-on brings its own IMAP client, so it works even when your host does not offer the PHP imap extension, which recent PHP versions no longer include.

https://gravityextra.com/wp-content/uploads/2026/10/gfe2e-mailbox.png

WordPress cron checks the mailbox every 5, 15 or 30 minutes or every hour. Only unread emails are looked at, oldest first, and they are read without being marked as read. Once an email has become an entry it is marked as read or moved to a folder such as “Imported”, so your inbox shows at a glance what has been processed. Emails that your filters skip are left unread and are not looked at again. The Test connection button checks the login and the folder without touching any email, and Check mailbox now imports straight away.

2. Receive emails instantly through a webhook

If you receive email through an email service, the service can post every incoming email to a web address the moment it arrives. Each webhook feed gets its own secret address to paste into the service:

  • Mailgun – create a route that forwards to the address and paste your webhook signing key into the feed. Every request is checked against the key, requests older than 15 minutes are refused and a request can never be replayed.
  • Postmark – set the address as the webhook URL of your inbound stream.
  • SendGrid – add the address as the destination URL in Inbound Parse, with the parsed or the raw message format.
  • Any other service or script – post the raw email, or JSON with the sender, subject, text, HTML and attachments.

The address carries a long random secret, so it cannot be guessed, and it only works for an active webhook feed. Each address also has a rate limit, so a misbehaving sender cannot flood your entries.

Keep only the emails you want

A shared inbox receives newsletters, notifications and out-of-office replies along with the emails that matter. Each feed has simple filters:

  • Only from these senders – full addresses, or a whole domain written as @portal.com, which also covers its sub-domains.
  • Never from these senders – addresses or domains to always skip.
  • Subject contains – a keyword, or several alternatives separated by a vertical bar, such as New lead|Enquiry.
  • Skip automatic replies, out-of-office messages and bounces – on by default, so an auto-reply never becomes a lead.

Skipped emails are listed in the feed’s log with the reason, so you can see exactly why an email did not become an entry.

Map the email to your form fields

Next you decide where each part of the email goes. The feed lists the parts of an email, and for each one you pick a form field: the sender’s email address and name, the Reply-To address, the To and Cc recipients, the subject, the message as plain text or HTML, the date it was sent, the Message-ID and the attachments.

https://gravityextra.com/wp-content/uploads/2026/10/gfe2e-mapping-scaled.png

Many emails also carry the real data inside the message, written as “Label: value” lines or in a small table. A portal lead might say Name: Maria Lopez, Phone: +1 555 0100 and Viewing date: 2026-11-04. Under Values inside the email you type the label on the left and pick the form field on the right; the add-on finds the line, or the line after the label when the email is laid out as a table. For values without a label, such as an order number in the subject, you can use a regular expression like /Order #(\d+)/, and the first group in brackets is used.

Values are fitted to the field they go into. A Name field gets a first and a last name, even from “Lopez, Maria”. An Email field gets the first address. A Date field gets the date written in the email, or the date it was sent in your site’s time zone. A Number field gets a clean number from “$450,000”. Drop Down, Radio, Checkbox and Multi Select fields get the choice whose label or value matches, so “Delivery: Express” selects your Express option. And if your customers reply to an email you sent, the option to keep only the new text cuts the quoted conversation and the signature, so the entry shows just what they wrote.

Attachments go into File Upload fields

Map Attachments to a File Upload field and each attachment is saved with the entry, just like a file a visitor uploads. The field’s own rules apply: only the file extensions it allows, up to its maximum file size and, for a multi-file field, up to its maximum number of files. Programs and scripts are never saved, and an image that is not really an image is refused. Every refused file is named in the entry note, so nobody wonders where an attachment went.

What happens after an entry is created

An entry created from an email behaves like any other entry:

  • It appears on the Entries screen with a note naming the source, the sender and the subject, and an Email sender column and filter.
  • The form’s notifications can be sent, and a separate notification event, Entry created from an email, lets you send a different message for emails than for website submissions.
  • The form’s other add-on feeds can run, exactly as for a submitted form, so the lead reaches your CRM, your email list, your spreadsheet or your Zapier or Make scenario without any extra step.

https://gravityextra.com/wp-content/uploads/2026/10/gfe2e-entry-scaled.png

Never twice, and always visible

The same email can reach you more than once: a portal resends a lead, a colleague forwards it to the mailbox again, or an email service retries a webhook. Email to Entry recognises every email by its Message-ID and never imports it twice. Each feed keeps a Recent emails log with the time, sender, subject and result of every email – entry created with a link, skipped with the reason, duplicate, failed or connection problem – and the feed list shows the result of the last email for each feed.

https://gravityextra.com/wp-content/uploads/2026/10/gfe2e-log.png

A step-by-step example: portal leads

  1. Create a form “Portal leads” with Name, Email, Phone, Viewing date, Message, Listing and a File Upload field for brochures.
  2. Create a mailbox leads@yourdomain.com, or a rule that copies portal emails into a folder, and give the portal that address.
  3. In the form, go to Settings → Email to Entry, add a feed, choose the IMAP mailbox and enter its details. Set After an email is imported to move it to “Imported”.
  4. Under Only from these senders, add the portal’s domain.
  5. Map the subject, the message and the attachments; then under Values inside the email add Name, Email, Phone and Viewing date, and a pattern for the listing reference.
  6. Save, click Test connection, then Check mailbox now. Each lead appears as an entry, your sales notification goes out and the lead is passed to your CRM feed.

Security and privacy

The mailbox password and the Mailgun signing key are stored encrypted with keys unique to your site. Webhook addresses carry a long random secret and answer “not found” to anything else. The raw email is not stored; only the values you map are kept in the entry, together with the sender address and the Message-ID used for duplicate detection. The add-on talks only to your own mail server, and without an active licence it imports nothing.

Frequently asked questions

Does it work with my email provider?

Any mailbox that offers IMAP works. Some providers ask you to switch IMAP on in the mailbox settings or to create an app password for third-party apps. If you already use an email service for incoming mail, the webhook feed is faster and does not need a password at all.

How fast do emails arrive?

Webhook emails become entries within seconds. IMAP mailboxes are checked on your schedule, every five minutes at the quickest. WordPress cron runs when your site has visitors, so on a quiet site a real server cron job keeps the schedule exact.

Can one form read several mailboxes?

Yes. Add one feed per mailbox or per kind of email; each has its own filters, mapping and log.

Will it read my whole inbox?

Only unread emails in the folder you choose are looked at, and only those that pass your filters are imported. A dedicated mailbox or folder keeps things simple.

Getting started

Install and activate the add-on, activate your licence key under Forms → Settings → Email to Entry, then add a mailbox feed under a form’s Settings → Email to Entry. Connect a mailbox or a webhook, set your filters, map the email and its values to your fields, and click Check mailbox now. From then on, the emails you care about become entries on their own. The add-on works with Gravity Forms 2.9 and newer. You can read the full documentation on the Gravity Forms Email to Entry documentation page, or see pricing and features on the Gravity Forms Email to Entry add-on page.

0
0
Your Cart
Your cart is emptyReturn to Shop
🔥 FREQUENTLY BOUGHT TOGETHER
Complete Combo & Save 40%!
ITEM IN YOUR CART
Gravity Forms Klaviyo Add-on
$39.00/yr
+
🎁 RECOMMENDED ADD-ON SAVE 40% OFF
Original Price: $39.00/yr
Bundle Special Price: $23.40/yr