🎉 Celebrate with 10% OFF on All Products! Use Code: GFEX10 Or Buy Any 2+ Items for 30% OFF with Code: GFEX30!

Gravity Forms Email to Entry Setup Guide

Updated 8 min read Gravity Forms Entries & Workflow
On this page
  1. Video walkthrough
  2. What you need
  3. Install and activate the licence
  4. Step 1: add a mailbox feed
  5. Step 2a: connect an IMAP mailbox
  6. Step 2b: receive emails through a webhook
  7. Step 3: choose which emails become entries
  8. Step 4: map the email to your form
  9. Attachments
  10. After the entry is created
  11. The log and duplicates
  12. For developers
  13. Troubleshooting

Video walkthrough

Gravity Forms Email to Entry Setup Guide: Turn Emails into Entries with a Webhook or IMAP
Video setup guide: Gravity Forms Email to Entry Watch on YouTube

The Gravity Forms Email to Entry add-on turns incoming emails into Gravity Forms entries. A mailbox feed on a form either reads an IMAP mailbox on a schedule, or receives emails instantly from an email service through a secret webhook address. Each email that passes your filters becomes a normal entry: the sender, subject, message, date, values written inside the email and attachments go into the fields you choose, and the form’s notifications and other add-on feeds can run as if the form had been submitted. This guide covers installation, both kinds of feed, filters, field mapping, attachments, what happens after an import, the log and troubleshooting.

What you need

You need Gravity Forms 2.9 or newer, WordPress 6.5 or newer and PHP 7.4 or newer, plus a Gravity Forms Email to Entry licence key. For an IMAP feed you need the server name, username and password of a mailbox (an app password where your provider offers one); the PHP imap extension is not needed, because the add-on has its own IMAP client. For a webhook feed you need an account with an email service that can forward incoming email to a web address, such as Mailgun, Postmark or SendGrid.

We recommend a mailbox or address that only receives the emails you want as entries, for example leads@yourdomain.com or a forwarding rule that copies portal emails into a dedicated folder.

Install and activate the licence

Upload and activate the add-on like any plugin. Go to Forms → Settings → Email to Entry and enter your licence key. On the same screen you can choose how often IMAP mailboxes are checked (every 5, 15 or 30 minutes, or every hour) and how many new emails are imported per mailbox in one check (20 by default). Until the licence is active no mailbox is checked and webhook addresses answer with an error, so nothing is imported by accident.

Step 1: add a mailbox feed

Open the form that should receive the entries and go to Settings → Email to Entry, then click Add New. Give the feed a name, for example “Portal leads inbox”, and choose where the emails come from:

  • Read a mailbox (IMAP, checked on a schedule) – the add-on logs in to your mailbox and imports new unread emails.
  • Receive from an email service (inbound webhook, instant) – your email service posts each email to the feed’s secret address the moment it arrives.

A form can have several feeds, for example one per mailbox or one per sender, and each feed has its own filters, mapping and log.

Step 2a: connect an IMAP mailbox

Fill in the IMAP server (for example imap.yourmailhost.com, without https:// and without a port), the Port and Security (SSL/TLS on port 993 is the usual choice; STARTTLS usually uses port 143), the Username and the Password. The password is stored encrypted with your site’s own keys; to change it, clear the box and type the new password. Choose the Folder to read (INBOX by default) and what happens After an email is imported: mark it as read, or move it to a folder that already exists in the mailbox, such as “Imported”.

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

Save the feed, then click Test connection. The add-on logs in, opens the folder and tells you how many emails it holds and how many are unread; nothing is read or changed. If the login fails, the message from your mail server is shown (your password never is). Check mailbox now runs an import straight away instead of waiting for the next scheduled check.

Only unread emails are looked at, oldest first. Each email is read without being marked as read, and is only marked as read or moved once its entry has been saved. An email that your filters skip is left unread in the mailbox and is not looked at again.

Step 2b: receive emails through a webhook

Choose your Email service and save the feed. The feed now shows its Webhook address with a Copy button. The address contains a long secret key, so keep it private; a wrong key, a paused feed or an IMAP feed always answers “not found”.

  • Mailgun: in Receiving, create a route whose action forwards (or stores and notifies) to the webhook address. Paste your HTTP webhook signing key into the feed: every request is checked against it, requests older than 15 minutes are refused and a request can never be replayed.
  • Postmark: in your inbound stream’s settings, set the webhook URL to the webhook address. Postmark posts the email as JSON, attachments included.
  • SendGrid: in Inbound Parse, add your receiving host with the webhook address as destination URL. Both the parsed format and the “raw, full MIME message” option work.
  • Other services: post the raw email with the content type message/rfc822, or JSON with from, subject, text, html, message_id and an attachments list of file names with base64 content.

The address answers 200 when an entry was created or the email was skipped or already imported, so your service does not keep retrying, and an error code when the request was refused. Each address accepts up to 120 emails a minute.

Step 3: choose which emails become entries

  • Only from these senders – one entry per line: a full address, or @domain for everyone at that domain and its sub-domains. Leave empty to accept every sender.
  • Never from these senders – addresses or domains that are always skipped.
  • Subject contains – import only emails whose subject contains this text, not case sensitive. Separate alternatives with a vertical bar, for example New lead|Enquiry.
  • Skip automatic replies, out-of-office messages and bounces – on by default.
  • Keep only the new text of replies – cuts the quoted earlier conversation (“On … wrote:”, “Original Message”, lines starting with >) and the signature.

Step 4: map the email to your form

Under Email parts, choose the form field for each part you want to keep: Sender email, Sender name, Reply-To email, To, Cc, Subject, Message (plain text), Message (HTML), Date sent, Message-ID and Attachments. Leave a part on “Select a Value” to ignore it.

Under Values inside the email, add a row for each value that is written in the message. On the left, type the label as it appears in the email, for example Phone for a line “Phone: 555 0100”; the value may also be on the next line, as in emails built from tables. Or type a regular expression between slashes, for example /Order #(\d+)/: the first group in brackets is used, or the whole match when there is no group. On the right, choose the form field. Values inside the email are applied after the email parts, so a “Name” line in a portal email wins over the portal’s own sender name.

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

Values are fitted to the field they go into. A Name field receives a first and last name (“Lopez, Maria” becomes Maria Lopez), an Email field the first address found, a Date field the date in the email or the date it was sent in your site’s time zone, a Number field a clean number, and Drop Down, Radio, Checkbox and Multi Select fields the choice whose label or value matches. Paragraph Text keeps line breaks and respects its maximum characters; a rich text Paragraph keeps the HTML message.

Attachments

Map Attachments to a File Upload field. Attachments are saved in the form’s upload folder like uploaded files, but only when the field allows them: its allowed file extensions (or a safe default list of images, PDF and office documents when the field has none), its maximum file size and, for a multi-file field, 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 listed in the entry note, for example “setup.exe (file type)”.

After the entry is created

Each entry gets a note naming the source, the sender and the subject, and the sender address is saved as Email sender, which you can show as a column and use as a filter on the Entries screen. Under After the entry is created you choose whether to:

  • Send the form’s notifications – the notifications set to “Form is submitted”.
  • Run the form’s other add-on feeds – CRM, email marketing, spreadsheets, webhooks and the like, exactly as for a submitted form.

Notifications set to the event Entry created from an email are always sent, so you can keep separate notifications for emails and for website submissions.

The log and duplicates

The Recent emails table at the bottom of the feed lists the last emails with the time, source, sender, subject and result: Entry created with a link to the entry, Skipped with the reason, Duplicate, Failed or Connection problem. The Feed list shows the result of the last email for each feed.

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

An email is recognised by its Message-ID (or, without one, by its sender, subject, date and text), so the same email is never imported twice, even when it arrives again under a new number or is forwarded twice by a webhook.

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

For developers

  • gfemail2entry_entry (filter) – change the entry built from an email before it is saved, or return false to skip the email.
  • gfemail2entry_entry_created (action) – runs after an entry has been created from an email.
  • gfemail2entry_webhook_rate_limit (filter) – requests per minute per webhook address (120).
  • gfemail2entry_log_size (filter) – how many log rows are kept per feed (50).

Troubleshooting

  • Login failed – check the username and password; many providers need an app password or IMAP to be switched on in the mailbox settings.
  • Could not connect – check the server name, port and security, and that your host allows outgoing connections to the mail server.
  • Folder could not be opened – folder names are case sensitive; sub-folders often look like INBOX.Leads or INBOX/Leads.
  • Nothing imported on schedule – WordPress cron runs when your site has visitors; on quiet sites, set up a real cron job for wp-cron.php.
  • Values missing – open the email and check the exact label; labels are not case sensitive but must match the words before the colon.

Still need help?

Our support team answers tickets every day, usually within a few hours.

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