> ## Documentation Index
> Fetch the complete documentation index at: https://docs.brew.new/llms.txt
> Use this file to discover all available pages before exploring further.

# Mailjet

> Export email templates from Brew straight into Mailjet for marketing and transactional sends, so design happens here and delivery stays there.

Connect your Mailjet account to export emails created in Brew directly to Mailjet as templates. No manual copy-pasting, design in Brew and export in one click.

<Frame>
  <img src="https://mintcdn.com/brew-796f053a/PUK-uvvrJtpQ2VX2/images/integrations/MailJet_OG.png?fit=max&auto=format&n=PUK-uvvrJtpQ2VX2&q=85&s=40f3aef4b9143405de8bf8e66578e32b" alt="Mailjet Integration" className="w-full rounded-xl" width="1024" height="571" data-path="images/integrations/MailJet_OG.png" />
</Frame>

## Setup

<Steps>
  <Step title="Open the Mailjet integration in Brew">
    In Brew, go to **Integrations** and click the **Mailjet** card.
  </Step>

  <Step title="Navigate to API Key Management in Mailjet">
    In Mailjet, go to **Account Settings → API Key Management (SMTP & API Settings)**.
  </Step>

  <Step title="Paste your API Key">
    Copy your **API Key (public key)** and paste it into Brew.

    <Warning>
      Use your account's primary API Key, not a subaccount key. Subaccount keys cannot access the templates API and exports will fail.
    </Warning>
  </Step>

  <Step title="Paste your Secret Key">
    Copy your **Secret Key (private key)** from the same page and paste it into Brew. Click **Connect**.
  </Step>
</Steps>

That's it. Mailjet is now connected to Brew.

## Exporting a Template

Once connected:

1. Open an email you've created in Brew
2. Click **Send**
3. Choose **Export template** to Mailjet
4. Give it a name and click **Export**

The template appears in Mailjet under **Content → Email Templates**, ready to use.

## What to Expect after Exporting

Exported templates are available under **Content → Email Templates**. From there, **Preview** lets you check the email in mobile and desktop views, and **Edit** opens the HTML code editor.

Brew templates are not editable in Mailjet's drag-and-drop editor. Any design changes should be made in Brew and re-exported.

To send a test email, open the **Edit** view and use the **Preview & Test** option.

## Requirements

* A Mailjet account
* Your API Key and Secret Key (Account Settings → API Key Management)

<Note>
  Subaccount API keys can't create templates. Use your account's primary API Key.
</Note>

<Snippet file="need-help.mdx" />
