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

How to Connect Gravity Forms to Mailjet (Step-by-Step)

GravityExtra
How to Connect Gravity Forms to Mailjet (Step-by-Step)

Mailjet gives you a contact database for campaigns and a sending service for transactional email. A Gravity Forms form is a natural front door for both. A visitor signs up and you want the address in a Mailjet contact list without exporting anything by hand.

This tutorial shows how to connect Gravity Forms to Mailjet using the GravityExtra Mailjet add-on. The feed screen lets you add a contact or subscribe it to a contact list, and each feed can carry its own condition.

If you only want the short version: install the add-on, save your Mailjet credentials, add a feed to your form, map the fields and submit a test entry. The rest of this article explains each step, shows a worked field mapping, covers conditional logic and lists the errors you are most likely to meet.

What You Can Do With Gravity Forms and Mailjet

The Mailjet Add-On add-on is a standard Gravity Forms feed add-on. A feed is a saved set of instructions on a form: when an entry is submitted, the feed sends data to Mailjet. You can add as many feeds as you like to one form, and each feed has its own settings. Here is what the feeds can do.

  • Add a contact. Create a Mailjet contact from the email, name and phone fields of your form.
  • Subscribe to a list. Add the contact to a specific Mailjet contact list using its numeric ID.
  • Run feeds only when needed. Use a condition so only entries that agreed to receive mail are sent.

Because the add-on calls the Mailjet API from your own WordPress site, there is no relay service in the middle. Your data goes from your server to Mailjet, and the result of each attempt is written back to the entry so you can check it later.

Real-World Ways to Use It

Here are three set-ups that site owners build most often with the Mailjet add-on. Each one needs only a single feed on the form.

  • A footer sign-up form adds the visitor to your main Mailjet contact list.
  • A product interest form subscribes people to a separate list per product, using one feed per list.
  • A contact form with a consent box adds people to a list only after they agree.

Before You Start

Make sure you have the following ready. It saves a lot of switching between tabs.

  • WordPress with Gravity Forms 2.5 or later installed and a form you want to connect.
  • The GravityExtra Mailjet add-on, downloaded from your account as a zip file.
  • A Mailjet account with an API key and a secret key.
  • A few minutes and one test entry to check the result.

Step by Step: Connect Gravity Forms to Mailjet

Step 1. Install and activate the add-on

In WordPress go to Plugins, then Add New, then Upload Plugin. Choose the zip file, install it and click Activate. A new item called Mailjet Add-On now appears under Forms, then Settings.

Step 2. Find your keys

In Mailjet open Account Settings, then API Key Management. You will see an API Key and a Secret Key.

Step 3. Save them in WordPress

Open Forms, then Settings, then Mailjet Add-On. Enter the API Key and the Secret Key and save. The secret key is stored in a password field.

Step 4. Find the list ID

If you plan to subscribe people to a list, open the contact list in Mailjet and copy its numeric ID.

Step 5. Add a feed to your form

Open your form in the editor, go to Settings and choose Mailjet Add-On. Click Add New to start a feed. Give it a Feed Name that says what it does, for example the form name followed by the action. A clear name helps later when you have several feeds on a form.

Step 6. Choose the Module

The Module drop-down offers Add Contact, Subscribe to List and Send Transactional Email. This guide uses the first two, which are the ones most sign-up forms need.

Step 7. Map your form fields

Each setting that reads Field in its label is a drop-down of the fields in your form. Pick the form field that holds the matching information. Settings marked required must be filled in before the feed will save. The next section shows a complete example.

Step 8. Save and test

Save the feed, open the form on your site and submit a test entry with real looking data. Then open the entry in Gravity Forms and read the notes. The add-on adds a note for every attempt. If it worked you will see the success message, and you can confirm the record inside Mailjet.

Field Mapping Example

Example: a newsletter sign-up that adds a contact and places it on a list

Assume a form with a name field, an email field and a phone field. Create one feed with the module Add Contact and a second feed with Subscribe to List, then fill in the second feed like this.

Feed setting Form field or value Note
Email Field Email
Name Field Name
Contact List ID Numeric list ID from Mailjet Required to subscribe
Phone Field Phone Used by the Add Contact module

Use real field types where you can. An Email field validates the address before the entry is saved, a Phone field keeps numbers tidy and a Drop Down gives you exact values that are easy to match later. The cleaner the form data, the fewer surprises on the Mailjet side.

Use Conditional Logic to Control What Gets Sent

Use Enable Condition to respect consent. Add a checkbox to the form with the label Send me news and updates, and set the condition on the subscribe feed to that checkbox is checked. The Add Contact feed can run for every entry, while only the subscribe feed waits for the consent box.

Conditions are evaluated when the entry is submitted. If the condition is not met the feed is skipped and nothing is sent, but the entry is still saved in Gravity Forms as usual.

Tips for a Reliable Set-Up

  • Test on a staging copy first. Use a staging site or a test form so that no real records are created in Mailjet by accident.
  • Mark key fields as required. A feed cannot send a value the visitor never typed, so make the fields that Mailjet needs required in the form.
  • Name your feeds clearly. When one form has several feeds, a name that combines the form and the action keeps the feed list easy to read.
  • Keep credentials private. Only administrators should reach the Forms settings page where the credentials are stored. Replace a key if you suspect it was shared.
  • Ask for consent where it is required. If the data is used for marketing, add a clear consent checkbox and use it as the feed condition.

Check the Result in the Entry Notes

Results are written to the entry as notes starting with Mailjet. If there was nothing to send, the note says Error: No data to send.

Treat the notes as your first stop for any problem. They show the exact response from Mailjet, which usually points straight at the cause.

Troubleshooting

These are the problems people meet most often when they connect Gravity Forms to Mailjet, with the fix for each.

The note says No data to send

The module did not find the field values it needs. Check that the email field is mapped and that the visitor filled it in.

Authentication errors

The API key and secret key must be a matching pair. Copy them again from API Key Management.

The contact is added but is not on the list

Add Contact only creates the contact. Use the Subscribe to List module with the Contact List ID to place it on a list.

The note shows an error code from Mailjet

The text after the code is the answer Mailjet returned. A 401 means the key pair is wrong, and a 400 usually means a value such as the list ID is not valid.

The feed does not run

Confirm that the feed is active in the feed list and that its condition matches.

Frequently Asked Questions

Can I add a contact and subscribe it to a list from one form?

Yes. Add one feed per module on the same form.

Which fields can I send?

The Add Contact module takes email, name and phone. Subscribe to List takes email, name and the contact list ID.

Where do I find the contact list ID?

Open the contact list in Mailjet and copy the number from the page address or list details.

Is a separate integration platform required?

No. The add-on sends requests from your WordPress site to Mailjet.

Can I limit the feed to people who opted in?

Yes. Use Enable Condition with a consent checkbox.

Get the Mailjet Add-On for Gravity Forms

Ready to try it? The Mailjet Add-On add-on is available on the Mailjet product page, and the Mailjet documentation walks through every setting in detail. A GravityExtra license also covers the other integration add-ons in our catalogue, so you can connect more tools as your needs grow.

You may also find these helpful: Gravity Forms Mailchimp add-on, Gravity Forms Constant Contact add-on, Gravity Forms ActiveCampaign add-on. You can browse everything in the full list of Gravity Forms add-ons.

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