Email from the app Lovable builds.
Lovable builds the frontend and a backend beside it. The email belongs in the backend: a function that calls the Notix API with the key stored as a secret. Ask for exactly that, because a key placed in the frontend is readable by every visitor.
Send an email from Lovable.
Add email sending with Notix (npm package notix-js, docs at https://usenotix.dev/docs).
Send from a server-side route only, reading the key from the NOTIX_API_KEY
environment variable. Never put the key in client code. Put the send in a backend function and store the key as a secret.
const response = await fetch("https://app.usenotix.dev/api/v1/emails", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.NOTIX_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({ from: "Acme <hello@acme.com>", to, subject: "Welcome to Acme", html: "<p>Glad you are here.</p>" }),
});
The from address must be on a domain you have verified in Notix. Step by step: Connect your AI.
Ask for a server-side send, with the key in the environment.
When Lovable writes the email code for your app, ask for it in a server route or server function that reads NOTIX_API_KEY from the environment. A key in client code is public the moment the app is deployed.
The from address must be on a domain you have verified in Notix. Until it is, check sends with the Notix-Dry-Run: true header, which sends nothing.
Give an AI app the Notix tools.
Notix hosts an MCP server at https://app.usenotix.dev/api/mcp. Lovable is where the app is built; to have an AI app call Notix directly, give it this address and header from Connect your AI.
Ask for a dry run first: Notix checks the send and sends nothing. A Live key sends from one verified domain, asks for approval before a send to more than 50 people by default, and cannot delete anything or change billing.
URL: https://app.usenotix.dev/api/mcp
Header: Authorization: Bearer <your Notix API key>
Questions, answered.
Where should Lovable put the email code?
Can the AI send to real people by mistake?
Is there a local MCP server as well as the hosted one?
Send your first email in five minutes.
Verify a domain, copy an API key, make one call. The free plan does not ask for a card.