Connect Mailjet
This article shows you how to connect Mailjet to PlayerMagick, send the emails a gate collects to a Mailjet contact list, and start Mailjet workflows from what people watch.
Available on: Pro, Business and Agency plans.
Before you start
- You need a Mailjet account and its API key and secret key.
- Only the PlayerMagick account owner or an admin can connect Mailjet. See Understand team roles.
Mailjet sometimes renames its menus. If a label below does not match exactly, look for the closest one.
Step 1: Copy your API keys
- Log in to Mailjet.
- Go to Account settings → API keys .
- Copy the API key and the Secret key. Mailjet shows the secret key only once: create a new pair if you no longer have it.
Step 2: Connect Mailjet in PlayerMagick
- Go to Settings → Integrations.
- Click Connect an email tool and choose Mailjet.
- Paste the API key and the Secret key.
- Click Test and connect.
Step 3: Choose a contact list for a gate
- Open your video, click the Interactions tab and click the email gate.
- Under Send leads to, choose your Mailjet account and a List.
- Click Save destination.
- Confirmation emails: Mailjet has no confirmation email for contacts added by other apps: the contact is added at once.
- Tags: Mailjet has no tags. Use a contact list or a contact property instead.
Start Mailjet workflows from what people watch
Build your Mailjet workflow to start when someone joins a list or when a contact property changes. Then, in a PlayerMagick automation, use Add to a list, Remove from a list (for people already in Mailjet) or Update a field (a contact property).
Recognise viewers from your Mailjet emails
Mailjet's contact IDs are numbers that are easy to guess, so PlayerMagick uses its own random ID:
- PlayerMagick creates a contact property called
pm_idand fills it for every contact it adds or updates. - In Automations → Recognise viewers from your emails, choose Mailjet and click Fill it for my existing contacts.
- Add this to the end of the links in your Mailjet campaigns:
?pm_mj=[[data:pm_id:""]]
Send yourself a test email and use Check a link.
Good to know
- Someone who unsubscribed from the list, or who is excluded from campaigns, is never added again. Leads shows Not added.
- Remove from a list takes out only people who are subscribed to that list. Someone who unsubscribed from it stays unsubscribed (Mailjet would otherwise forget the unsubscribe), so a later Add to a list never subscribes them again.
- Disconnect removes the keys from PlayerMagick. To stop them working everywhere, also regenerate them in Mailjet.
Error messages
| Message | What to do |
|---|---|
| "Mailjet did not accept this key. Check that you copied the whole key." | Copy the API key and the secret key again; they must be from the same pair. |
| "Mailjet didn't answer. Try again in a minute." | Try again in a minute. |
All statuses and fixes: Fix an email tool error.