Import leads from WordPress 7 contact form

Djaboo has the ability toimport / capture leads from the most popular contact form (and any other customizable form) for the WordPress contact form 7 with the function email integration integrated into Djaboo.

The process is very simple, once you have configured the contact form to be compatible with email integration you will be importing leads in no time with the fields filled in the contact form automatically added. for the imported lead.

We recommend reading this entire setup article first to get an idea of ​​how contact form fields will be mapped and how leads will be imported into Djaboo to familiarize yourself with the steps. to follow for this setup to work, then you can move on to setting up the full setup. The prerequisite for this configuration is to have previously correctly configured the integration of the main emails in Djaboo, click:

Here  to learn more about the setup.

For the simplicity of this example and the configuration, we will use a minimalist example for the configuration of the contact form with the fields Name, Email, Message  (see below for a more detailed example).

Install Contact Form 7 #

If you have already installed Contact Form 7 and are familiar with Contact Form 7, you can skip this step.

If you haven't installed Contact Form 7 yet, you need to install the plugin from your WordPress dashboard, in the left menu go to Plugins->Add New and search Contact Form 7 , after finding the Contact Form 7 plugin, click install and after installation click on Enable .

We assume you already know how Contact Form 7 works and how you can integrate the form into a custom page ex: Contact Us, if you are not, you can find out more by clicking here .

Configure Contact Form 7 #

In this example, we will use the basic Contact Form 7 configuration that comes with the form after installation.

After installing and activating the plugin from the WordPress admin menu, click Contact-> Contact Forms

Choose the form you want to configure and click on the name.

Click on the tab Mail in the contact form for configure the contact form email to be compatible with Djaboo.

It is strongly recommended to always include the field 

e-mail in the message and the Reply To header in the Additional Headers section with merge fields [your email]

Headers additional

Add your configured Djaboo onboarding email in Settings ->Prospects->Email Integration .

In the new line, add Example: Bcc: your@email.com

Make sure the Reply To header is set as shown in the image.

It is  the important part , in this case, when a user fills in the form, the contact form plugin will add BCC to your leads email onboarding email and the Djaboo CRON job can save that email and import the lead with the fields provided.

message body

The point here is to wrap all form values ​​and include in the message/email body with:

[your-CONTACT-FORM-FIELD]

Once the email is sent, this field will be populated with the actual value of the field and will become an example.

John Doe

You will need to replace LEAD_FIELD with the actual lead field. You will actually need to create a contact form field in order to add the fields in the body of the email.

Use HTML content type #

In the mail tab of CF 7, check Use HTML content type , in this case the email will be HTML.

Available lead fields #

domain name field_title field_email field_website field_phonenumber field_company field_description field_address field_city field_state field_country field_zip field_lead_value (v2.5.0)

Country field #

If you send a country field , keep in mind that the country must be the ID of the Djaboo database table for countries (tblcountries) ou the name Example. United States (without typos) because the Djaboo script will compare the country name passed in the message body and find the appropriate country ID in the Djaboo country table.

User writes United States, it will work fine, but if a user writes a country name that does not exist in the country table or makes a typo ex. To United States, Djaboo will not be able to identify the country ID from the country table.

Custom fields #

If you want to embed a custom field for a lead, you can use custom_field_ ID,  Replace ID by the actual custom field ID which is in Settings->Custom Fields.

If you're using a custom field, the email markup should look like this:

[your-CONTACT-FORM-FIELD]

Note that if you add custom fields of type 

Check box ou 

Select , the options should be the same as you added in the Djaboo custom field option in Settings->Custom Fields. Moreover, for 

date fields , custom date fields must be passed to the YMD format.

Example. example for a custom field of type Select in Djaboo – Click here to view configuration options.

Example. example for a custom field of type Select in contact form 7 – Click here to view configuration options.

In the Mail tab of Contact Form 7, just add the field tag in the attachments area .

Attachments #

Keep in mind that only attachment extensions allowed in Settings->Settings->General (Djaboo installation) will be added when importing the lead.

Full example with more fields #

Suppose our contact form 7 has fields:

  • Subject
  • Name
  • E-mail
  • Website
  • Phone Number
  • Professional
  • Message

Contact form fields #

Our contact form fields configuration should look like this ( you can modify as you see fit ):

<tag> Subject [text* your-subject] <tag> Your name (required) [text* your-name] Your email (required) [email* your-email] <tag> Website [send an SMS to your website] <label> Phone number [text your phone number] Company [text your company] <label> Your message [textarea your-message] [submit "Send"]

Configuring the Mail tab #

Click on the email tab to configure the content of the email body.

You can get the available shortcodes of the field values ​​at the top of the Mail tab configuration where it says “In the following fields you can use these mail tags”

The body content of the email should look like this:

From: [your-name] <[your-email]> Subject: [your-subject] Name: [your name] E-mail: [your email] Website: [your site] Phone number: [your phone number] Business: [your business] Message body: [your message] -- This email was sent from a contact form on Djaboo (https://djaboo.com/support)

You can see how all field values ​​are wrapped in div with id=”field_LEAD_FIELD” ,  LEAD_FIELD actually comes from the available lead fields

In this example, the message that the user will write in the contact form, we fill in the lead description text box, which is suitable for this case.

Keep in mind that the subject will not be added to the prospects section from Djaboo because the subject is not suitable for any field belonging to the prospect, you can either create a custom field or you will be able to see the subject by clicking on in the Email Activity tab in the main modal, click here to check how it will look.


Now when a user fills in contact form 7, the plugin will add your email onboarding email as a BCC header and this email will also be sent to the email. -mail integration email.

Djaboo's cron job will read this email and map all the fields provided in the email message and import the lead into Djaboo's leads section.


You can apply this logic to any WordPress contact/form plugin that allows you to edit email content and add BCC, you can even use it with a PHP email form pure, you just need to embed the BCC email to your leads and format the body of the email as mentioned above, isn't that awesome?