- 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
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.
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:
- API key: paste your Mailjet API key.
- Secret key: paste the secret key that belongs to that API key.
- 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.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.