Skip to main content
Mailjet 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: 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.
For standard transactional emails (signup confirmations, password resets, receipts, internal notifications), use the built-in Lovable Emails.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.

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 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 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)
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.
2

Open API key management

Go to API Key Management 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.
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.

Step 2: Connect Mailjet to Lovable

Enter both keys in the connection form.
1

Open Mailjet in Connectors

Open Connectors and select Mailjet. For the other places to open the catalog from, see 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 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 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: 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 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 for the steps and who can delete.