Summary
- Introduction
- What is a Zap
- Ready to Use Zap Templates
- Subscribe Action Zap
- Send Email with Mailjet Template Zap
- Send HTML Email Zap
- Send Email Campaign to a Mailjet Contact List Zap
- Parse Inbound Emails Zap
- Email Events Zap
- Update Contact Properties Zap
- Appendix A - Use Postman to generate a Parse Email Address
- Troubleshooting
- Conclusion
Introduction
Zapier allows you to work more efficiently by connecting your online web apps with Mailjet to create automated tasks. Here are a few examples:
- Automatically generate Mailjet contact lists from your opt-in Shopify customers, Meetup group members, GoToWebinar Registrants, Paypal customers, Typeform submissions, etc.
- Send new Mailjet contact list subscribers to Google Sheets, Evernote note, Pipedrive, AnyMeeting, Gravity Forms, etc.
- Synchronize your unsubscriptions with your CRM or other central system of record.
- Send an HTML thank you email to people who have just completed one of your Typeforms.
- Create a new candidate profile on Workable when an applicant emails their résumé to your company’s jobs@ email address
Zapier supports hundreds of online apps so you can create an endless number of tasks to automate those repetitive and sometimes tedious parts of your business.
And the best part - no coding is required - Zapier offers an easy to use interface!
What is a Zap
A zap is basically an automated task that you want run over and over again between two online apps. A zap consists of a trigger and an action:
When this happens (Trigger), do something (Action).
Once you have created your zap, Zapier will check your trigger every few minutes for new data. If the zap is triggered, Zapier will automatically perform the action! There is no involvement needed from you - your data will flow from one app to the other.
With Mailjet, you have the following Trigger options:
- Subscribe Contact to Mailjet List
- Unsubscribe Contact from Mailjet List
- Parse Inbound Email (when new email is sent to your Parse API email address)
- Email Events (when an event occurs with a Mailjet contact - send, open, click, bounce, spam, block)
And several Actions :
- Subscribe Contact to Mailjet List
- Unsubscribe Contact from Mailjet List
- Send a Plain Text Email
- Send an HTML Email
- Send Email Using a Saved Mailjet Template
- Send an Email Campaign to a Mailjet List
- Update Contact Properties (in Mailjet)
Below we will guide you through the steps to create zaps using the abovementioned triggers and actions, as well as give you examples on how to link different services with your Mailjet account, which we believe will help you better take advantage of the platforms’ capabilities.
Ready to Use Zap Templates
Zapier also allows the creation of templates for commonly used zaps. They will streamline the process for you, by hiding unnecessary options and allowing you to select only the ones you need for your zap.
To review the available Zap templates for the apps you are interested in, go to Zapier’s Explore section. There you can search for and add the applications you want to link. Once selected, the respective app tags will show below the search section.
When you have selected the two apps, scroll down to see the popular Zap templates and click on ‘Use this Zap’ to use the template you have chosen.
Whenever such a template is available for the examples in this guide, we will include it in the ‘General Information’ section for the respective zap.
Keep in mind that there will be several important differences between using the templates and the way you create a zap directly from the ‘Make a Zap!’ option on the Zapier site:
- The Trigger and Action Apps will be pre-selected for your convenience.
- Since the template has been created with a specific trigger and action in mind, all other triggers and actions will be hidden to avoid mistakes.
- During trigger and action configuration generally only mandatory options will be displayed. You can view the optional configurations by clicking on ‘Show advanced options‘.
Subscribe Action Zap
General Information
We will build a zap using Eventbrite + Mailjet to automatically add new event attendees’ email address and details to your Mailjet event contact list.
Pro tip: Remember to make sure and ask your attendees to opt-in to receive communication from you. This ensures you keep your sender reputation intact and get the best deliverability possible.
The Trigger will be new attendees (Eventbrite) and the Action will be adding the attendees’ details to contact list (Mailjet).
Trigger Phase
-
To create a Zap, go to your Zapier dashboard and click on ‘Make a Zap’.
-
Enter a descriptive name for your new Zap.
-
In the ‘Choose a Trigger App‘ search box, enter ‘Eventbrite’ and select it.
-
You will see a list of possible triggers for the Eventbrite app. You need to click on the ‘show less common options’ link to view all triggers.
For this example, select ‘New Attendee’ and click on ‘Save + Continue’.
-
At this step you will need to select your Eventbrite account to use with this trigger. If you have already connected an Eventbrite account to Zapier, it will appear on the list. Otherwise you’ll have to connect a new Eventbrite account to your Zapier account.
For this example, we will add a new Eventbrite account by selecting the ‘Connect a New Account’ option.
In the new pop-up window, you will need to log into Eventbrite and ‘Allow’ Zapier to access data from your account.
Go back to your Zapier window and you will see a new ‘Eventbrite #’ account. If you wish to change this default name, simply click on the pencil icon and enter a new name.
You can also test to make sure that the account is active with the ‘Test’ button next to it.
Select your Eventbrite account and click on the ‘Save + Continue’ button.
-
On the new page, click on the ‘Event’ drop down list and select your desired event. Then click on ‘Continue’.
-
At this step Zapier will test the Eventbrite Trigger by fetching (retrieving) an existing attendee. If you do not have at least one recent attendee of your event, please go to Eventbrite and register for the event.
Once ready, click on ‘Fetch & Continue’.
-
You should see a ‘Test Successful’ screen and you can see the details of the attendee by using the ‘view your attendee’ link. If the test did not work for whatever reason, you can click choose the ‘Re-test Eventbrite to get another attendee’ option (provided you have another event attendee).
Click on the ‘Continue’ button…
… and you have successfully set up your Trigger!
Action Phase
-
Now we need to set up the Action – adding the new attendees to a Mailjet contact list.
-
From the ‘Choose an Action App’ search box, enter ‘Mailjet’ and select it from the list.
-
There are several possible Mailjet actions. For this example, please select ‘Subscribe Contact to Mailjet List’ and click on ‘Save + Continue’.
-
You now need to select a Mailjet account that the zap will use. If you have already connected a Mailjet account with Zapier, it will show up on the list. Otherwise click on the ‘Connect a New Account’ button to add a new Mailjet account.
For this example, we will connect a new Mailjet account.
In the new pop-up window, you will add your API Key (User) and Secret Key (Password). You can find this information on the API Key Management page in your Mailjet account.
Click on ‘Yes, continue’ to close the window.
On your Zapier screen, you will see a new “Mailjet #” account. To change the name, just click on the pencil icon and enter a new name.
Select ‘Save + Continue’ to continue.
-
Now you need to select the contact list where you want to add the new attendees, and match the ‘Email’ field (required) to the attendee’s Profile Email.
-
Additionally, you have the option to match up your Eventbrite attendee properties to your Mailjet contact properties (for example: first name, last name, etc.), so that you can then send them personalized emails or segment your contact list according to any of your attendee properties.
Once you have selected your contact list and matched up your contact properties, click on ‘Continue’.
-
Zapier will now test the Mailjet action by adding a new contact to your Mailjet list. Click on ‘Create & Continue’ to perform the test.
-
You should arrive at the Test Successful screen. (If the test was unsuccessful, please select the ‘Re-test’ option.)
Click on the ‘Finish’ button.
-
Finally, use the toggle button to turn ‘on’ your Zap.
Congratulations – your Zap is on and will automatically run when the Eventbrite (New Attendee) trigger happens!
Send Email with Mailjet Template Zap
General Information
In every business it is often necessary to communicate quickly about new developments, be it to clients or partners / employees. To do this automatically, you can create a zap with the ‘Send Email Using a Saved Mailjet Template’ action.
You can create highly customizable templates in Mailjet using our powerful and easy-to-use drag-and-drop Email Editor tool. You can then use these templates to send automatic emails to concerned parties, whenever the Zap is triggered. For example, thanking someone when an online survey is completed, or sending someone a welcome email when you add them to a Google Spreadsheet contact list or anything else you can dream of.
The main benefits from using Mailjet’s Email Editor templates are:
- Extremely user-friendly design interface
- Variety of options to customize your emails
- Easy to collaborate between teams on template design and content
- Templates are stored in the editor and can be reused for other purposes
For this example we will build a zap using WooCommerce + Mailjet. The zap will send an automatic customized email to users, whose purchases were paid for (order changes status to Processing).
Trigger Phase
-
Click on ‘Make a Zap!’, choose a zap name, then for a Trigger App search for and select WooCommerce.
-
Afterwards, choose the actual trigger. For our example, we need the ‘New Order’ trigger - it will activate when a WooCommerce order has been paid for and changes its status to ‘Processing’.
-
You now need to provide a webhook URL to WooCommerce, so the order statuses can be properly tracked by Zapier.
You will see the URL in the box shown - cick on ‘Copy to Clipboard’.
Afterwards open your WordPress Dashboard and go to ‘WooCommerce’ → ‘Settings’.
In the ‘API tab’, click on ‘Webhooks’, then use the ‘Add Webhook’ button.
It is now time to configure the webhook. You will see all of the configurable options below.
- Name - the name you use to identify your webhook in WooCommerce. The default name will be “Webhook created on @ .
- Status - to activate the webhook, you will need to select ‘Active’ from the drop-down menu.
- Topic - this option allows you to select when the webhook will be triggered. You should select ‘Order Updated’.
- Delivery URL - here you need to paste the webhook URL you copied to your clipboard from Zapier earlier.
- Secret - the Secret Key is used to generate a hash of the delivered webhook and provided in the request headers. It will default to the current API user’s consumer secret if not provided.
- API Version - Select the latest version of the WordPress REST API Integration (currently v2).
Once you are ready with the configuration, click on ‘Save webhook’ to complete the it.
-
Go back to Zapier and click on ‘OK, I did this’.
-
Now Zapier will try to fetch an order with a ‘Processing’ status in your WooCommerce service. If you dont have such an order, make sure to create one.
-
Once the fetch has been completed successfully, you only need to ‘Finish’ the trigger, and you can move on to the Action Phase!
Action Phase
-
Search for Mailjet in the Action App search bar and select the result.
-
Select the ‘Send Email Using a Saved Mailjet Template’ action and click on ‘Continue’.
-
Select the Mailjet account you want to use, or connect a new one. For reference click here.
-
It is time to configure the email you want to send, when the webhook is triggered. The first several fields are pretty self-explanatory, but please keep in mind the following details:
-
From Address - the email address you want to send the automatic emails from. You can select it from the drop-down menu.
-
Sender Name - the name of the sender you want to appear in the email
-
Recipients - this includes the To, CC and BCC fields.
Under To you need to enter the customer’s email address, as the confirmation email is intended for them. Simply call up the drop-down menu and select ‘Billing Email Address’.
CC and BCC are optional fields, you can use them to forward the email to other concerned parties - a Customer Support team member or Account Manager, for example.
-
Email Subject - the subject of the email template - e.g. “Order Payment Received”. You can even customize it to show the ID of the order in the subject line by selecting the respective option in the drop-down menu.
-
-
Once you are done, you need to select a Mailjet template to use for the zap. If you don’t have one ready, please create one by going to the ‘My Templates‘ section of your Mailjet account. For more information visit our Guide.
You will need to scroll through the list of templates, or simply use the Search menu, to find the one you need.
-
Once you have selected the template you want to use, you will be given the option to enable or disable the Template Language. You need this option turned on, if you want to personalize the email with contact properties or WooCommerce variables.
-
You can link these emails to a Campaign for better email tracking and statistics. You can link it to an existing campaign, or – using a Custom Value – create a new one to use for that purpose.
-
You can also choose an email, where you will receive any error reports connected to issues with the use of templating language within the emails.
-
Now we come to the options to personalize your email template. You can add different variables in the text of your email in order to include details relevant to the communication.
Simply choose a detail from WooCommerce that you want to include by selecting it from the drop-down menu.
You can select up to 5 variables to include in your email. In the end you will have a selection similar to the below.
Remember – you need to add the variables to the template text in order to include the necessary information. They are defined as
{{var:var1:”default text”}}
for the first one,{{var:var2:”default text”}}
for the 2nd one etc. The “default text” can be changed to accommodate situations where there is no value for the respective variable.Here is a simplified example of how a template can look in the Email Editor with variables included from both the WooCommerce order details and the Mailjet Contact Properties.
When you are ready in Zapier with your template configuration, click on ‘Continue’.
-
You will now need to test the template – you will see the details you entered, as well as the information pulled from WooCommerce for the variables you have opted to use.
Review the information and click on ‘Create & Continue’.
-
The only thing left is for you to ‘Finish’ and turn on the zap, and you are ready to go!
Send HTML Email Zap
General Information
Should you need a faster way to send an email, creating a template isn’t mandatory, you can also send plain HTML content directly from Zapier using the ‘Send HTML Email’ action. The template will lack the customizable design of the Email Editor, but that removes the necessity of creating a template in the Email Editor in the first place, so you will be able to create your zap quickly.
For the purpose of this documentation, we will build a zap using SurveyMonkey + Mailjet: whenever a survey is completed in SurveyMonkey, an email will be sent from your Mailjet account. (If you haven’t read the “What is a zap” section of the guide, please do so now.)
Here’s what you will do:
- Create a zap using SurveyMonkey as the trigger.
- Select the Mailjet Action “Send Plain Text/HTML email”.
- Choose the parts of the survey that you want included in the email.
- Chose which Mailjet account to connect to and complete the zap.
Trigger Phase
-
Go to your Zapier account dashboard, and click the ‘Make a New Zap’ button.
-
Enter a name for your new Zap.
-
In the ‘Choose a Trigger App’ search box, enter ‘SurveyMonkey’ and select it.
-
You will see a list of possible triggers for the SurveyMonkey app (To view all triggers, click on ‘show less common options’).
Select ‘New Survey Response’ and then click on the ‘Save + Continue’ button.
-
At this step you will need to select your SurveyMonkey account to use with this trigger. If you have already connected an SurveyMonkey account to Zapier, it will appear on the list. Otherwise you will need to connect a new SurveyMonkey account now.
For this example, click choose ‘Connect a New Account’ to add a new SurveyMonkey account.
In the new pop-up window, log into your SurveyMonkey account.
You will be asked to authorize Zapier to have access to your SurveyMonkey data. Click on ‘Authorize’.
Go back to your Zapier window and you will see a new SurveyMonkey account. If you wish to change the default name, just click on the pencil icon to enter a new name.
Select the new SurveyMonkey account and click on ‘Save + Continue’.
-
On the new page, click on the ‘Survey’ drop down list to select the desired survey. Then click on ‘Continue’.
-
At this step Zapier will test the SurveyMonkey Trigger by fetching (retrieving) an existing survey response. If you do not have at least one survey response, please go to the survey and fill it out yourself.
Once ready, click on ‘Fetch & Continue’.
-
You should see a ‘Test Successful’ screen where you can use the ‘view survey response’ link to see the survey answers. If the test did not work for whatever reason, you can select the ‘Re-test SurveyMonkey to get another survey response’ button (provided you have another survey response that can be used for testing).
Click on ‘Continue’…
… and the Trigger is done! :)
Action Phase
Now we need to set up the Action – send an email from your Mailjet account.
-
From the ‘Choose an Action App’ search box, enter ‘Mailjet’ and select it from the list.
-
You have the choice of sending a plain text email, an HTML email or an email using a saved Mailjet template. For this example, select ‘Send HTML Email’ then click on ‘Save + Continue’.
-
You now need to select a Mailjet account that the zap will use. For reference click here.
-
At this step, you need to setup the HTML email by entering a From: address, To: address, Subject, etc.
You will also be able to choose a ‘Reply To’ address. This is optional, but allows you to select a different email address, where replies from recipients will be received.
You can also insert the survey results directly into the email. Simply click on the ‘Insert a field’ icon and select the parts you want to be included in your email.
Once you have finished the email setup, click on ‘Continue’.
-
Zapier will now test the Mailjet Action by sending an HTML email. Click on the ‘Create & Continue’ bitton to perform the test.
-
You should arrive at the ‘Test Successful’ screen. (If the test was unsuccessful, please use the ‘Re-test Mailjet’ option.)
-
Click on the ‘Finish’ button…
-
Finally, click the toggle button ‘on’ to start your new Zap.
Awesome :) Your Zap is on and will automagically check for new SurveyMonkey responses every 15 minutes.
Send Email Campaign to a Mailjet Contact List Zap
General Information
Want a quick way to inform specific customers of new posts published on your blog, or new items added to your online store? With the help of Zapier and the Mailjet ‘Send an Email Campaign to a List’ action you can easily automate this task, saving valuable time and effort.
The main advantages of using a Mailjet contact list are:
- You only need to update your Mailjet contact list with the proper recipients in order to ensure that every person is added - no need to update every single Zap you’ve created whenever an email address needs to be added or removed.
- You can view your campaign stats in Mailjet to check deliverability reports and open / click rates.
For this example we will create a zap to automatically send an email campaign to a Mailjet contact list of your choice, whenever a new WooCommerce product is published.
-
To create the Zap, go to your Zapier dashboard and click on ‘Make a Zap’.
-
Enter a descriptive name for your new Zap.
-
You need to select a trigger app. Since WooCommerce is a plug-in for WordPress, the products are being added as WordPress products. That is why we need to select WordPress as the trigger app by entering ‘WordPress’ in the search box and selecting the result.
-
You will see a list of possible triggers for the WordPress app. You need to click on the ‘show less common options’ link to view all triggers.
For this example, select ‘New Post’ and click on ‘Save + Continue’.
-
Select your WordPress account to use with this trigger. If you have already connected a WordPress account to Zapier, it will appear on the list. Otherwise you’ll have to connect a new one.
For this example, we will add a new WordPress account by selecting the ‘Connect an Account’ option.
In the new pop-up window, enter your WordPress account information - the base URL, username and password - and click on ‘Yes, Continue’.
Go back to your Zapier window and you will see a new ‘WordPress #’ account. If you wish to change this default name, simply click on the pencil icon and enter a new name.
You can test whether the account is active or not by clicking on the ‘Test’ button next to it.
Select your WordPress account and click on the ‘Save + Continue’ button.
-
You now need to specify what kind of post should trigger the zap. Both the Status and Type fields are optional - if you don’t select anything, the zap will be triggered with every single post on your WordPress site.
For this example we will select a Published status and a Products type from the respective drop-down menus. Then click on ‘Continue’.
-
At this step Zapier will test the WordPress Trigger by fetching (retrieving) an existing product. If you do not have at least one recent published product, please go to WordPress and create one in the WooCommerce plug-in.
Once ready, click on ‘Fetch & Continue’.
-
You should see a ‘Test Successful’ screen and you can see the details of the product by using the ‘view your post’ link. If the test did not work for whatever reason, you can click choose the ‘Re-test WordPress to get another post’ option (provided you have another product).
Click on the ‘Continue’ button…
… and you have successfully set up your Trigger!
Action Phase
-
Now we need to set up the Action – sending a campaign to a Mailjet contact list.
-
From the ‘Choose an Action App’ search box, enter ‘Mailjet’ and select it from the list.
-
There are several possible Mailjet actions. For this example, please select ‘Send an Email Campaign to a List’ and click on ‘Save + Continue’.
-
Select a Mailjet account to use for the zap, or connect a new one. For reference click here.
-
At this step, you need to setup the email campaign by entering a From: address, Contact List, Campaign Name, Subject, Email Body etc.
You will also be able to choose a ‘Reply To’ address. This is optional, but allows you to select a different email address, where replies from recipients will be received.
-
Personalize your emails by inserting information from the contact properties stored in Mailjet, by using the syntax
[[data:property_name:"default_value"]]
. For example, aDear [[data:firstname:"Customer"]],
email introduction will add the value of thefirstname
property for each contact to their respective email.If there is no value linked to
firstname
for a certain contact, it will be replaced by the default value, in this case -Customer
.Additionally, you have the option to add details from your WooCommerce product properties (e.g. product name, link etc) to your email, so that you can then send emails with the relevant information included.
Once you are ready, click on ‘Continue’.
-
Zapier will now test the Mailjet action by adding a new contact to your Mailjet list. Click on ‘Send Test To Mailjet’ to perform the test, or click on ‘Skip Test’ to skip it.
-
You should arrive at the Test Successful screen. (If the test was unsuccessful, please select the ‘Re-test This Step’ option.)
Click on the ‘Finish’ button.
-
Finally, use the toggle button to turn ‘on’ your Zap.
Congratulations – your Zap is on and will automatically run when the WooCommerce (new published product) trigger happens!
View Your Campaign Statistics
Every time a zap with the ‘Send Email Campaign to a List’ action is triggered, it will create a campaign and send out the email template you configured to the contact list you have selected.
The respective campaign will be recorded in Mailjet and you can see your campaign stats at any time by going to your Mailjet Campaigns and clicking on the name of the one you want to view.
For more information on Mailjet campaign stats, please visit our dedicated guide.
Parse Inbound Emails Zap
General Information
Wouldn’t it be great to have your incoming mail automatically processed and distributed to another application?
Imagine having all email sent to your “contact@” email be parsed and key information automatically added to Google sheets or have an announcement made in a Slack or Skype room.
Or when a candidate sends their resumes to your “jobs@” email, a profile for that candidate is automatically created in Workable or Breezy HR.
This is possible by creating a zap with Mailjet’s Parse Inbound Email. (If you haven’t read the “What is a zap” section, please do so now.)
Here’s how it works:
- Create a zap with the Mailjet trigger: Mailjet Parse Inbound Email.
- Mailjet will then generate a special email address (called a Parse API email address).
- You then redirect your inbound emails to this new parse email address (you have to do this outside of Zapier).
- Complete the zap by selecting what parts of the email you want to be parsed and sent into which Zapier connected app (Action).
And you are done – just start sending emails to your Parse API email address and let the zap do the work!
Let’s build a Parse Zap using Mailjet + Salesforce: A sales prospect fills out your sales contact form on your website and the email – with their key information in the email custom headers – will be transferred into Salesforce and create a new prospect.
Go to your Zapier account dashboard, and click on ‘Make a New Zap’.
Enter a name for your new Zap.
Trigger Phase
From the Choose a Trigger App search box, enter and select ‘Mailjet’.
Select the ‘Parse Inbound Email’ trigger and click on ‘Save + Continue’.
Select a Mailjet account to use, or connect a new one to Zapier. For reference click here.
At this point you will need to ask Mailjet to create a new parse email address for your Zap.
Although the long list of instructions on Zapier may look confusing, it is quite simple! :)
You can generate a parse email address using the Mac Command Terminal, Postman, Hurl.it or your favorite API Request Builder.
For this example, we will create the parse email address using Hurl.IT. (We have also provided instructions on creating a parse email address with Postman in Appendix A).
Open a new browser and go to www.Hurl.it.
From the drop down list, select ‘POST’. And paste in the Mailjet Parse Route URL: https://api.mailjet.com/v3/REST/parseroute
The Mailjet Parse Route URL will parse the inbound emails and send the contents to another location – in this case Zapier.
Click on the ‘+ Add Authentication’ link.
Add your Mailjet API Key (username) and Secret Key (password) into the respective text boxes. You can find this information on the API Key Management page in your Mailjet account.
Now you need to provide the destination URL, where the parsed email content should be sent. This URL is called a webhook URL.
Go back to your Zapier page and scroll to the bottom to find the webhook URL.
Click on the ‘Copy to clipboard’ button.
Go back to the Hurl.it page and select the ‘+Add Parameter(s)’ link.
In the name text box, enter: URL
And paste the webhook into the second text box.
Tick the checkbox to confirm you are not a robot ;) Then click on ‘Launch Request’.
Congratulations – you have made your first parse email address!
Now you need to send a test email to your new parse email address to activate it. Please ensure the email contains the information needed to create a new Lead in Salesforce. (The minimum information needed by Salesforce to create a new Lead is company and last name).
Once you have sent the test email, switch back to your Zapier screen and click the ‘OK, I did this’ button.
You should see the ‘Test Successful!’ page with a link to view your parse inbound email (the test email you had sent a few minutes earlier).
If the test was not successful, use the ‘Re-test Mailjet’ button to get another parse email address, or send another test email to the parse email address.
Click on the ‘Continue’ button to complete the Parse Inbound Email Trigger!
Action Phase
Now onto Step 2: create the Action – adding a contact prospect to Salesforce!
From the ‘Choose an Action App’ search box, enter ‘Salesforce’ and select it from the list.
You will see a list of possible Salesforce actions.
Select ‘Create a new lead’ and click on ‘Save + Continue’.
At this point, you will need to connect a Salesforce account to this zap. If you have already connected a Salesforce account with Zapier, it will show up on the list. Otherwise click on the ‘Connect a New Account’ button to add a new Salesforce account.
In the pop-up window, click on ‘Yes, continue’.
Enter your Salesforce information and select ‘Log in’.
Go back to your Zapier window and you will see a new ‘Salesforce Account #1’ account. If you wish to change this default name, just click on the pencil icon and enter a new name.
Select your Salesforce account then click on ‘Save + Continue’.
You will now see all the fields associated with a Salesforce Lead.
You need to match the information from your test email to the respective Salesforce fields.
Simply click on the drop-down list for the desired Salesforce field and match it to your email.
Once you have matched up all the fields, scroll to the bottom of the page and click on ‘Continue’.
The test page should say ‘Test Successful!’. If the test was unsuccessful, please use the ‘Re-test Salesforce to get another lead’ option.
Click on ‘Finish’.
And the last step – use the toggle option to turn on your Zap.
You are done! Your Zap is on and will automatically run when email is sent to your parse email address.
Email Events Zap
General information
The Email Events trigger allows you to set up a Zap, which will activate upon a certain email event - e.g. the mail is opened, a link within it is clicked, it bounces and cannot be delivered etc. This allows you to transfer information back to your Pipedrive account for the respective emails you are interested in.
Naturally, the ways to configure the Zap depend on the Zapier actions available for your Action App. Here as an example we will configure a Zap to leave a note in a Pipedrive contact every time this contact ‘clicks’ an email.
Trigger Phase
- Click on ‘Make a Zap!’, enter the name of your zap and choose Mailjet as the Trigger App.
-
Select the ‘Email Events’ trigger, then click on ‘Continue’.
-
Choose a Mailjet account to use, or link a new one to Zapier, if needed. For more information click here.
-
You will now need to select the events you want to automatically track for this trigger. Event Tracking simply means whenever there is an event, an event is dispatched to the provided Endpoint URL, containing meaningful context about the event (like the recipient email, timestamp, etc). From here, the customer can script actions to be done following it.
We will use the URL provided to allow Zapier to recognize when a link in an email was clicked, and subsequently trigger the Zap. To do that, first please copy the provided URL to your clipboard.
Then go to the Trigger Events section of your Mailjet account.
Follow the below instructions to configure the Endpoint URL for the Click trigger.
A. Tick the checkbox next to the ‘Click’ event.
B. Paste the previously copied URL into the ‘Endpoint URL’ field for the ‘Click’ event.
C. You can test the URL by clicking on the ‘Send’ button – if it is correct, you will receive a ‘OK, Code 200’ response.
D. Click on ‘Save’ to submit the changes.
-
Once you have done this, go back to Zapier and click on ‘Continue’.
-
You will be given the option to select a contact list for the zap. Call up the drop-down menu and choose the list you want to use.
Once you have made your selection, click on ‘Continue’.
-
You will be asked to review your selections - make sure that you have added the Endpoint URL link and selected the proper contact list.
-
The system will now want to test the trigger. Make sure that you have recent events matching your selections so far. In this case, we need a contact from the ‘Mail Events List’ contact list, who has clicked on a link in a Mailjet campaign recently.
-
Once the test is successful, click on ‘Continue’ to complete the trigger configuration.
Action Phase
-
Search for and select Pipedrive as the Action App.
-
Choose the action you want the Zap to perform. In our example this will be a ‘Create Note’ action. Then click on ‘Continue’.
-
Select a linked Pipedrive account you want to use, then click on ‘Continue’. If you don’t have a Pipedrive account linked to Zapier, or want to select a new one to use, click on ‘Create a New Account’.
For this example, we will connect a new Pipedrive account to use.
In the pop-up window enter your Pipedrive API Key and click on ‘Yes, Continue’. You can find your API Key by clicking on the link provided in the pop-up.
Go back to the Zapier page and you will see the new ‘Pipedrive Account #’ account. If you wish to change this default name, just click on the pencil icon and enter a new name.
Select the account and click on ‘Save + Continue’.
-
You will now need to configure the note. Once you have configured it on your end, click on ‘Continue’.
-
Zapier will now ask you to test the zap - click on ‘Create & Continue’ to do that, or on ‘Skip Test & Continue’ to skip it. Afterwards simply Finish the Zap and turn it on and you are all set!
Update Contact Properties Zap
General Information
In order to send good personalized emails and marketing campaigns, you need to make sure that your contacts’ personal information is always up to date. To make it easy for you, you can link your service to Mailjet via Zapier, and once a detail is updated on an account in the service you are using, the same is updated in the contact properties on Mailjet’s end.
In this example we will show how to achieve this using Hubspot CRM and Mailjet - when a contact property is updated in Hubspot, the contact properties in Mailjet are updated as well.
Here is how we will achieve this:
- Create a zap using Hubspot CRM and use their “New Contact Property Change” trigger.
- Choose a property update that will trigger the zap.
- Select Mailjet as the Action App, using the “Update Contact Properties” action.
- Match the Hubspot CRM contact properties with Mailjet ones, so that the information in Mailjet can be properly compared and updated.
Trigger Phase
-
Click on ‘Make a Zap!‘, choose a zap name, then for a Trigger App search for and select Hubspot CRM.
-
It is time to select the trigger. From the list of triggers choose ‘New Contact Property Change’ and click on ‘Continue’.
-
You need to select the Hubspot CRM account you want to use, or connect a new one to Zapier. For this example, we will show how to connect a new Hubspot CRM account.
Click on ‘Connect an Account’.
In the pop-up window that appears you will be asked to submit your Hub ID.
The Hub ID can be found by logging in your Hubspot CRM Dashboard, near the top-right corner.
Go back to the pop-up window, enter the Hub ID and click on ‘Yes, Continue’.
You will see a message asking you to confirm that you want to allow Zapier access to your Hubspot data. Click on ‘Authorize’.
Once you do that, the pop-up window will close, and when you go back to the zap creation page, you will see a new “Hubspot CRM #” account present there.
Select the new account and click on ‘Save + Continue’.
-
Now you need to select the property update that will trigger the zap.
If you want to keep it simple, you can decide to update a single piece of information - e.g. when a contact’s phone is updated, update the same in Mailjet.
We will take the more complex approach and choose the ‘Recent Sales Email Opened Date’ property. When the customer opens a new Sales email, Zapier will automatically check if their personal details in Mailjet - address, phone etc. - are up-to-date, and if not they will be updated. Nice, right? :)
When you have selected the property, click on ‘Continue’.
-
You need to test the trigger - Zapier will try to fetch a property change for an existing account in Hubspot CRM.
Simply click on ‘Fetch & Continue’ to initiate the test.
-
Click on ‘Continue’ to complete the trigger phase and move on to configuring the Action!
Action Phase
-
First of all, you need to search for an select Mailjet as the Action App.
-
Choose the action to be performed when the trigger is activated. In our case, this would be ‘Update Contact Properties’. Afterwards, click on ‘Continue’.
-
Select the Mailjet account you want to use, or connect a new one to Zapier. For reference please click here.
-
You now need to onfigure the match-up of your Hubspot CRM contact properties to your Mailjet ones, so they can be properly updated when the zap is activated.
You will see a list of your properties.
The ‘Email’ property is the only mandatory one, However, it is useful to match additional ones – e.g. Address, Phone, Postal Code etc. This will help you later both when personalizing emails in Mailjet and for segmentation of the contact list for marketing campaigns, for example.
Here is an example on how to match your Mailjet ‘Email’ contact property with the same one in Hubspot CRM.
In the end, you will have a picture similar to the one below. When you are ready, click on ‘Continue’.
-
You will need to test the zap. You can check the information pulled by Zapier and see if it the properties are correctly aligned.
Click on ‘Create & Continue’. If you wish to skip the test, select the ‘Skip Test & Continue’ option.
-
When the test is successful (or skipped), you will see a message informing you about the same. Click on ‘Finish’ to complete the zap.
-
All that’s left is to turn on the zap, and you are ready to go!
Appendix A - Use Postman to generate a Parse Email Address
If you have never used Postman, you can downloaded it for free from www.getpostman.com.
Click on the ‘GET’ drop down menu and select ‘POST’. And paste in Mailjet Parse Route URL: https://api.mailjet.com/v3/REST/parseroute
The Mailjet Parse Route URL will parse the inbound emails and send the contents to another location – in this example Zapier.
Click on ‘Authorization’ from the menu bar and select ‘Basic Auth’.
And add your Mailjet API Key (Username) and Secret Key (Password) into the respective text boxes. You can find this information on your Mailjet API Key Management page.
Now you need to provide destination URL where the parsed email content should be sent. This URL is called a webhook URL which is provided by Zapier and can be found and copied directly from the bottom of your Zapier.
Click on the ‘Copy to clipboard’ button.
Go back to Postman page, and select ‘Body’ from the menu. Click on the ‘raw’ radio button and then select ‘JSON (application/json)’ from the drop down list.
Paste the webhook URL into the text editor. Add the following text around the webhook URL:
{ “Url”:”webhookURL” }
Then click on the ‘Send’ button.
Scroll down the screen to find your new parse email address!
Troubleshooting
The Zapier Help page can assist you with answers to questions about Zap functionalities and common issues.
Of course, feel free to contact our Customer Support team, in case you come across any technical difficulties with the Mailjet product. You can submit a ticket in the Mailjet ‘Contact Us’ page, and our team of specialists will be more than happy to assist you!