Divi Contact Form: Missing Email Address Fix

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.

Find the sender’s email address now

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.

Divi Contact Form: how to put the email address inside the message?

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 pattern in the Divi Contact Form includes only the content of the message. 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. Just hit that help icon by the Message Pattern tab to check!

Find the field ID

Inside the Divi Builder, go into your Contact Form Module settings. Inside the Content tab, you’ll see all the fields your contact form is using – and each field has its little settings 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 it’s own ID, which is different from the field title – the label of the field displayed in the contact form on your website.

To check the Email field’s ID, simply click on the gear icon. You will see two settings there: 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.

Each field has its own settings tab where you can change the title and the ID.

The default ID is Email – and if you’re using the default, you can simply go back to your module Content settings -> Email tab. You have already put in your email address there, the one the messages from the contact form are sent to.

Add the ID to the message pattern

Now, we will look at the second setting in this tab: 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%%.

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 our example, which includes all the default Divi Contact Form fields and one custom field:

divi contact form message pattern to include missing email address
We added an additional custom field with the message subject, and it is included in the message pattern.

We 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 our 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.

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 our 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 using conditional logic, you can check out the form used in Girly, our premium child theme for glamorous entrepreneurs! For more inspiration, look at the demo Contact pages in the other Divi Lover premium child themes.

Final thoughts

Did you find this Quick Divi Tip helpful? Let us know in the comments! And what kinds of custom fields, if any, have you added to your contact form? We’d love to know!

Have you seen our

Divi child themes?

Divi Toolbox plugin?

We offer a great selection of high-quality Divi products to speed up your work. Feel free to use a coupon code IREADBLOG at the checkout to get a 10% discount!

4 Comments

  1. evi

    i did that and now when email is end out it looks great i see all fields, but now when trying to reply to that email with form fields received then it does reply to mail@dmain,,,,. any way to fix this? it should reply to the email that was input in the form. thnx

    Reply
  2. Sean Quinn

    Thank you so much! You just made my day.

    Reply
  3. Kees

    Works fine. Thanks for the solution!

    Reply
  4. Angela

    Thank you for the awesome work and tutorials you do!

    Reply

Submit a Comment

Your email address will not be published. Required fields are marked *

Enjoing our content?

You might find this interesting…

License Details

REGULAR LICENSE

Single Site

A regular license allows an item to be used in one project for either personal or commercial use by you or on behalf of a client. The item cannot be offered for resell either on its own or as a part of a project. Distribution of source files is not permitted.

EXTENDED LICENSE

Unlimited Sites

An extended license allows an item to be used in unlimited projects for either personal or commercial use. The item cannot be offered for resell either on its own or as a part of a project. Distribution of source files is not permitted.

SUPPORT & UPDATES

Each license is a one-time payment. There are no annual fees. You get lifetime access to product updates. Support is provided for 6 months from the date of purchase.

Server Requirements

SERVER SETTINGS:

  • PHP 7.2 or later
  • upload_max_filesize (256M)
  • max_input_time (300)
  • memory_limit (256M)
  • max_execution_time (300)
  • post_max_size (512M)

PHP.INI SETTINGS:

  • php-xml or/and php-dom
  • XMLReader
  • PHP CURL module

PHP MODULES:

  • allow_url_fopen

Would you like to...

Consult Ania and fellow students?

Join the conversation inside our private FB group.

Would you like to...

Get support privately?

Submit a support ticket via your account page.

Ask Ania?

Submit a question for the next live Q&A session.

Consult fellow students?

Join the conversation inside our private FB group.