Divi Contact Form: Missing Email Address Fix

aniaromanska

Written by Ania Romańska

Published on . Last edited on .

Divi Contact Form missing email address fix

TL;DR

Divi sends Contact Form messages from mail@yourdomain with the sender's name; the visitor's email address is in the Reply-To header, so clicking Reply fills it in.

To show the address inside the message, add %%Email%% to the Contact Form's Content → Email → Message Pattern (same in Divi 5 and Divi 4). Field IDs in the pattern are not case-sensitive.

Without a Message Pattern, the email body contains the Message field plus any extra fields as "Title: value", but not the Name and Email fields.

Divi only sets the Reply-To header when the email field's Field ID is Email (the sender name comes from the field with the ID Name). Renaming these IDs removes the Reply-To address.

If the Email Address setting is empty, messages go to the WordPress Administration Email Address; you can enter several addresses separated by commas.

Updated for Divi 5: I tested the Contact Form module in Divi 5: it still sends every message from mail@yourdomain and puts the sender's address in the Reply-To field, and the Message Pattern fix below works exactly as before. The settings paths are now given for Divi 5 and Divi 4.

So your Divi Contact Form is up and running: you are getting emails from people contacting you through your website. The only problem? You can't find the sender's address! If this happened to you, you might have gotten quite frustrated with the Divi Contact Form and the missing email address. Fortunately, there is a very easy fix to this problem, and that email isn't actually missing: you just need to know where to find it.

Where is the sender's email address in a Divi Contact Form message?

It's in the Reply-To field of the email. Divi sends every Contact Form message from mail@yourdomain (with the sender's name) and puts the address the visitor typed into the Reply-To header, so it doesn't show up in the "From" line.

So you're looking at the email you got through the Divi Contact Form. There is the body of the email, the generic subject "New Message From [your website]" and in the "From" field, you have the sender's name and the address mail@[yourdomain].

The only thing missing is the email address of the sender, right? If you double check your Divi Contact Form, the Email field is definitely there, and it's a Required Field, so the form will not be sent if it's not filled out. So why can't you see it in your inbox?

No need to panic, it hasn't really gone missing. As soon as you hit "Reply" to the email you got through the Divi Contact Form, the "To" field will automatically be filled in with the correct email address.

And if you are using an email client, that field might already be visible. For example, Mozilla Thunderbird has two separate fields while displaying an email. One is "From" (which will display the email address with your domain) and there is an additional field "Reply to", where you can find the sender's email address. In Gmail, click the small arrow under the sender's name to see the "reply-to" address.

How to add the sender's email address to the Divi Contact Form message

Open the Contact Form module settings, go to Content → Email → Message Pattern and type %%Email%% (plus any other fields you want to see). Divi replaces it with the address the visitor entered, so it shows up right in the message. This works the same way in Divi 5 and Divi 4.

Now, maybe you're receiving tons of messages every day, or you just don't want to click "Reply" every time you want to check the sender's email address. No matter your reason, if you want to see the email address displayed inside the message, there's an easy way to do it. You just need to customize the Contact Form.

The default message includes only the content of the Message field (plus any extra fields you added, as "Title: value"). Divi leaves the Name and Email fields out. But we can customize it to add other information: for example the sender's email address, their name, or the content of any additional fields your Contact Form is using.

To do this, we will use the Divi pattern for including the content of a given field inside our message. The pattern is as follows: %%field_id%%, where field_id needs to be substituted with the proper field ID.

divi contact form message pattern customization
You don't need to learn the %%field_id%% format by heart or search for it if you forget: the help text of the Message Pattern setting explains it. (Divi 4 screenshot)

Step 1: Find the field ID

Inside the Divi Builder, open your Contact Form module settings. In the Content tab you'll see all the fields your contact form is using. In Divi 5 they are listed in the Elements group (with an "Add New Field" button below them), and you can open a field's settings from that list. In Divi 4, each field in the list has its little settings (gear) icon.

If you're using the default settings here, it will look something like this:

divi contact form module settings
The default fields include the sender's name, their email address, and the message content. Each field has its own ID, which is different from the field title, the label of the field displayed in the contact form on your website. (Divi 4 screenshot)

Open the Email field's settings. You will see two settings in its Text group: Field ID and Title. Title is the name of the field that will be displayed in the form, and you can change it. And the ID is what we'll use to put the sender's email address inside the message content.

Email field settings in the Divi Contact Form with Field ID and Title
Each field has its own settings where you can change the title and the ID. (Divi 4 screenshot)

The default ID is Email. If you're using the default, you can simply go back to the Contact Form's Content tab and open the Email group. It has two settings: Email Address (where the messages are sent; if you leave it empty, Divi uses the Administration Email Address from Settings → General in WordPress, and you can enter several addresses separated by commas) and Message Pattern.

Step 2: Add the ID to the Message Pattern

Now, we will look at the second setting in this group: Message Pattern.

It is blank by default, but we want the sender's email address to be included in there. To do that, we're going to use the correct pattern, so %%field_id%%, and our Email field's ID, which is Email. The result is: %%Email%%. Divi doesn't care about upper or lower case here, so %%email%% works too.

You can also include the content of other fields inside your message pattern, using exactly the same steps.

Example of the customized Divi Contact Form

Here is my example, which includes all the default Divi Contact Form fields and one custom field:

divi contact form message pattern to include missing email address
I added an additional custom field with the message subject, and it is included in the message pattern. (Divi 4 screenshot)

I also added the names of the respective elements for clarity, so for example: Name: %%Name%% and so on. These labels are very helpful to tell at a glance what you're looking at. If you'd like to copy my message pattern, here it is! Just note that it will only work if your Divi Contact Form is using the default field IDs. You can skip the custom field (Subject).

Name: %%Name%%
Email: %%Email%%
Message subject: %%Subject%%
Message: %%Message%%

And here is what the resulting email sent from this contact form will look like with the customized message pattern:

message sent from divi contact form including sender's email address
This is my example, containing all the most important information to easily tell what a message is about.

And if you need some inspiration for a more advanced Divi Contact Form (for example with conditional logic), look at the demo Contact pages of my premium Divi templates.

Why is the Reply-To address missing from my Divi Contact Form emails?

Most often because the Email field's Field ID was changed. Divi only adds the Reply-To header when the form has a field with the ID Email (and it takes the sender's name from the field with the ID Name), so keep those two IDs as they are.

I tested it in Divi 5: with the Email field's ID changed to your_email, the message arrived without any Reply-To address, so hitting "Reply" would answer mail@yourdomain. If you renamed the ID, change it back to Email, or at least add %%your_field_id%% to the Message Pattern so the address is in the message.

What if Divi Contact Form emails don't arrive at all?

Then the problem is email delivery, not the form. Divi sends the messages with WordPress's own mail function, from an address like mail@yourdomain that usually doesn't exist, and many servers and spam filters block or bin such emails.

Check your spam folder first. If the messages still don't show up, send your WordPress emails through a proper email service with an SMTP plugin. Divi recommends a delivery service in the help text of the Email Address setting too.

Final thoughts

Did you find this Quick Divi Tip helpful? Let me know in my Divi Lovers Facebook group! And what kinds of custom fields, if any, have you added to your contact form? I'd love to know!

This article has been tagged with: Divi Fixes

Tags

Divi Contact Form missing email address fix

Table of Contents

Popular questions

Where can I find the sender's email address in a Divi Contact Form message?

Click Reply: Divi puts the visitor's address in the Reply-To header, so it fills in the "To" field. Many email clients also show it as "Reply to" in the message details. To see it inside the message itself, add %%Email%% to the Message Pattern.

Does the Message Pattern still work in Divi 5?

Yes. In Divi 5 it is in the Contact Form's Content tab → Email → Message Pattern, and it uses the same %%field_id%% format as Divi 4, for example %%Email%% or %%Message%%. The field IDs are not case-sensitive.

Can a Divi Contact Form send messages to more than one email address?

Yes. In Content → Email → Email Address, enter several addresses separated by commas. If you leave the setting empty, Divi sends the messages to the Administration Email Address from Settings → General in WordPress.

Why are my Divi Contact Form emails not arriving?

Divi sends the messages with WordPress's mail function from mail@yourdomain, and many servers and spam filters block such emails. Check your spam folder, then send your WordPress emails through an email delivery service with an SMTP plugin.

About the Author

Ania Romańska

I'm a Divi expert from Poland, with over 10 years building the templates and courses that make up Divi Lover. I'm also a mom of five, which taught me a thing or two about explaining things clearly the first time.

Hey there!Sorry to interrupt,but this one's important!

Divi Lover is turning 10!
Let’s celebrate with 40% off everything.

Ten years of Divi templates, plugins and tips, and a brand-new website to celebrate it. To say thank you, every product in the shop is 40% off until Cyber Monday.

Your code

Paste it at checkout. Valid until November 30.