Skip to content
Mailjet

How to use Mailjet

CommunicationCost: 1 credit per runTop 100 · #47Full guide

What it is for

Mailjet in flooows lets you send transactional or marketing emails from your flows, using plain text, HTML or Mailjet templates. Typical uses are order confirmations, welcome emails, reminders or personalized notices with data from your CRM or store.

Mailjet has no triggers: it is used as an action inside flows started by other triggers, such as a new order or a submitted form.

Set up the connection

Authentication type: Username and password

  1. 1Sign in at app.mailjet.com.
  2. 2Go to Account settings > REST API > API Key Management, or straight to the API keys page.
  3. 3Copy your API Key and Secret Key; if the secret is hidden, create a new one with Generate Secret Key.
  4. 4In flooows, add a Mailjet step, click "Connect" and paste the API Key as username and the Secret Key as password.
  5. 5Save the connection.

Credentials are stored encrypted in your isolated database, in Spain, and are never shown in plain text.

How to use it in a flow

  • Send Email: set From (Email), which must be a sender validated in Mailjet, and optionally From (Name).
  • In Emails of recipients, map the recipient address from an earlier step.
  • Fill Subject and Text part or HTML part, mixing static text with flow variables.
  • To use a template, enter its Template Id and pass the data in Template variables.

Tips

  • •Authenticate your domain with SPF and DKIM in Mailjet to improve deliverability.
  • •Always include a text part alongside the HTML.
  • •Use Custom API Call to manage contacts or lists with the same connection.

Actions (2)

Operations available as flow steps. Expand each one to see its fields.

Send Email8 fields
FieldTypeRequired
From (Email)TextYes
From (Name)TextNo
Emails of recipientsList of valuesYes
SubjectTextYes
Text partLong textNo
HTML partLong textNo
Template IdNumberNo
Template variablesKey / value pairsNo
Custom API Call10 fields
FieldTypeRequired
urlDynamic fieldsYes
MethodFixed listYes
HeadersKey / value pairsNo
Query ParametersKey / value pairsNo
Body TypeList (from your account)No
BodyDynamic fieldsNo
Response is BinaryYes / NoNo
Return Error as OutputYes / NoNo
TimeoutNumberNo
Follow redirectsYes / NoNo

Common errors

401 error

Make sure the API Key and Secret Key belong to the same account or sub-account.

Sender not authorized

Validate the From (Email) address or domain in Mailjet.

Template variables are not replaced

Check that names in Template variables match those in the template.

Field types

"List (from your account)" loads options from your connected account; "Dynamic fields" appear depending on earlier choices; in any field you can insert data from previous steps with the data selector (e.g. {{trigger.email}}). More about data between steps