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

# Connect your app to Mailjet

> Connect your app to Mailjet, an email delivery service, to send transactional email, manage contact lists, and track message delivery from your Lovable app.

[Mailjet](https://www.mailjet.com/) is an email delivery service for transactional and marketing email. The Mailjet connector lets your Lovable app send email, manage contacts, and read delivery status through your Mailjet account.

Mailjet is available as an [app + chat connector](https://docs.lovable.dev/integrations/app-connectors.md): one shared connection that works in the project chat while you build and in your published apps.

With Mailjet, your app can:

* Send transactional email from a sender or domain you validated in Mailjet
* Add contacts to Mailjet contact lists, for example from a signup form
* Read the delivery status of your emails, such as sent, opened, clicked, or bounced
* List the senders configured in your Mailjet account

Mailjet is a good fit when you already send with Mailjet, want to keep your contact lists there, or need Mailjet's delivery tracking inside your app.

> [!TIP]
>
> For standard transactional emails (signup confirmations, password resets, receipts, internal notifications), use the built-in [Lovable Emails](https://docs.lovable.dev/features/custom-emails.md).
>
> Lovable Emails can also send from your own domain. Use the Mailjet connector when you already manage your sending or contacts in Mailjet, or need more volume than Lovable Emails offers.

## Common use cases and example apps

These examples show what you can build with Mailjet, each with a prompt to start from.

| Example app | Example prompt | Description |
| :- | :- | :- |
| **Order confirmations** | *Use Mailjet and build a store that sends an order confirmation email after checkout.* | **Send transactional email from app events.** The app sends a Mailjet email whenever a customer completes a purchase. |
| **Newsletter signup** | *Use Mailjet and build a landing page with a newsletter signup form that adds subscribers to my Mailjet contact list.* | **Grow a Mailjet contact list from your app.** The app adds each new subscriber to the contact list you choose in Mailjet. |
| **Contact form** | *Use Mailjet and build a contact form that emails each submission to our support inbox.* | **Turn form submissions into email.** The app validates the submission and sends it to the right inbox through Mailjet. |
| **Delivery status dashboard** | *Use Mailjet and build an admin page that shows recent emails and whether they were sent, opened, clicked, or bounced.* | **Track delivery without leaving your app.** The app reads message status from Mailjet and lists it for your team. |
| **Weekly digest** | *Use Mailjet and build a dashboard that emails a weekly summary to every team member on Monday morning.* | **Deliver recurring reports by email.** The app compiles the data and sends the digest through Mailjet on a schedule. |
| **Alerts** | *Use Mailjet and build an order monitor that emails me whenever an order over \$1,000 is placed.* | **Send high-signal alerts by email.** The app watches for matching events and emails the right people through Mailjet. |

## How to connect Mailjet

Who can create Mailjet connections depends on your plan and workspace settings. App + chat connectors are available by default. On Business and Enterprise plans, [Who can create connections and clients](https://docs.lovable.dev/integrations/admin-controls.md#who-can-create-connections-and-clients) starts at **Admins**. Some Enterprise workspaces start at **No one**, which disables the connector. An admin or owner changes it in **Connectors → Admin settings → App + chat connectors**.

You can create multiple Mailjet connections using different API keys, which is useful for separating environments (for example, development and production) or connecting different Mailjet accounts.

When the connection is created, you can [link it to the projects](https://docs.lovable.dev/integrations/app-connectors.md#link-a-connection-to-a-project) where you want to use it. Anyone building in a project can ask Lovable in the project chat to link their project to it.

### Prerequisites

Before connecting Mailjet, make sure you have:

* A Mailjet account
* A sender address or sending domain validated in that Mailjet account
* A Mailjet API key and its secret key
* The API region of your Mailjet account. Most accounts use the default region. Only accounts that Mailjet moved to its US infrastructure use the US region.
* Permission to **create connections** in your Lovable workspace (see [Who can create connections and clients](https://docs.lovable.dev/integrations/admin-controls.md#who-can-create-connections-and-clients))

> [!NOTE]
>
> All email sent through this connector counts toward your Mailjet plan. Billing is handled directly by Mailjet, not Lovable.

### Step 1: Get a Mailjet API key and secret key

Mailjet authenticates API requests with a pair of values: an API key and its secret key. Lovable needs both.

To get your Mailjet API key and secret key:

**1. Open your Mailjet account**

Sign in to [Mailjet](https://app.mailjet.com/).

**2. Open API key management**

Go to [**API Key Management**](https://app.mailjet.com/account/apikeys) in your Mailjet account settings.

**3. Copy the API key and secret key**

Copy your primary API key and its secret key, and store them securely.

> [!WARNING]
>
> Your secret key functions like a password. Keep it secure and never share it publicly. You'll need it in the next step.

See Mailjet documentation for more: [Mailjet Email API reference](https://dev.mailjet.com/email/reference/).

### Step 2: Connect Mailjet to Lovable

Enter both keys in the connection form.

**1. Open Mailjet in Connectors**

Open [**Connectors**](https://lovable.dev/dashboard?connectors) and select **Mailjet**. For the other places to open the catalog from, see [Where to find connectors](https://docs.lovable.dev/integrations/introduction#where-to-find-connectors).

**2. Add a connection**

Click **Connect** on the connector page. The form is split into collapsible sections, **Details**, **Configure connection**, and **Sharing**.

**3. Name the connection**

Under **Details**, Lovable fills in a name for the connection, which you can change. The name is only used inside Lovable to identify the connection.

**4. Configure the connection**

Under **Configure connection**, enter:

1. **API key**: paste your Mailjet API key.
2. **Secret key**: paste the secret key that belongs to that API key.
3. **API region**: keep **Default (api.mailjet.com)** unless Mailjet moved your account to its US infrastructure. In that case, select **United States (api.us.mailjet.com)**. If you're not sure, keep the default.

**5. Choose who can use this connection**

Under **Sharing**, the connection is private to you by default and shows a **Private** label. To share it, click **Share with others**. Then add workspace members by email, or click **Invite entire workspace** to make the connection available to everyone in your Lovable workspace.

See [Who can use connections and clients](https://docs.lovable.dev/integrations/admin-controls.md#who-can-use-connections-and-clients) for more information.

**6. Connect**

Click **Connect** at the bottom of the form. Lovable verifies the keys against the Mailjet API for the selected region before saving the connection.

If verification fails with an authentication error (`401`) even though you copied both keys correctly, your account probably uses the other region. Switch **API region** and click **Connect** again.

When connected, anyone building in a project can ask Lovable in the project chat to link their project to Mailjet (based on configured connection-level access). Your Lovable apps can then send email, manage contacts, and read delivery status through Mailjet.

## Sending from your domain

Mailjet only sends from sender addresses and domains you validated in your Mailjet account. The connector does not validate senders or configure DNS for you. Mailjet's [Senders and Domains guide](https://dev.mailjet.com/email/guides/senders-and-domains/) covers how to add and validate them.

To validate a domain, Mailjet gives you DKIM and SPF records to add at your DNS provider, usually where you bought the domain.

When prompting Lovable, mention the address you want to send from (for example, `noreply@mydomain.com`) so your app uses it consistently.

## Limitations

The Mailjet connector cannot:

* Validate sender addresses or domains for you. Set these up in Mailjet first.
* Send SMS through Mailjet. The connector covers Mailjet's email API only.
* Receive Mailjet event webhooks through the connector. Point Mailjet webhooks at your app's own backend endpoint, or read message status from Mailjet instead.
* Rotate API keys automatically. To rotate, generate a new key in Mailjet and update the Lovable connection.
* Use more than one region per connection. A single connection authenticates against either the default or the US Mailjet API.
* Support per-end-user Mailjet login. Each connection represents a single Mailjet account shared across all projects linked to it.

## Manage your Mailjet connection

Connections are managed from [**Connectors**](https://lovable.dev/dashboard?connectors): select **Mailjet**, then open the connection.

* **Unlink projects** to remove Mailjet access from specific projects while keeping the connection available for others. See [Unlink projects from a connection](https://docs.lovable.dev/integrations/app-connectors.md#unlink-projects-from-a-connection) for the steps.
* **Delete the connection** to remove it from the workspace entirely. Deleting is permanent. It removes the credentials from all linked projects, and app features that use Mailjet stop working until a new connection is added. See [Delete a connection](https://docs.lovable.dev/integrations/app-connectors.md#delete-a-connection) for the steps and who can delete.
