Brevo for developers and SaaS stacks
Node.js, Python, PHP, Laravel, Django, Next.js, Firebase, Supabase or n8n: find the guide that fits your stack.

Send your first email in your language
Configure your sending domain and sender before sending emails.
npm install @getbrevo/brevo
import { BrevoClient } from '@getbrevo/brevo';
const brevo = new BrevoClient({ apiKey: 'your-api-key' });
const result = await brevo.transactionalEmails.sendTransacEmail({
subject: 'Hello from Brevo!',
htmlContent: '<html><body><p>Hello,</p><p>This is my first transactional email.</p></body></html>',
sender: { name: 'Alex from Brevo', email: '[email protected]' },
to: [{ email: '[email protected]', name: 'John Doe' }],
});
console.log('Email sent. Message ID:', result.messageId);
pip install brevo-python
from brevo import Brevo
from brevo.transactional_emails import (
SendTransacEmailRequestSender,
SendTransacEmailRequestToItem,
)
client = Brevo(api_key="your-api-key")
result = client.transactional_emails.send_transac_email(
subject="Hello from Brevo!",
html_content="<html><body><p>Hello,</p><p>This is my first transactional email.</p></body></html>",
sender=SendTransacEmailRequestSender(
name="Alex from Brevo",
email="[email protected]",
),
to=[
SendTransacEmailRequestToItem(
email="[email protected]",
name="John Doe",
)
],
)
print("Email sent. Message ID:", result.message_id)
curl --request POST \
--url https://api.brevo.com/v3/smtp/email \
--header 'accept: application/json' \
--header 'api-key:YOUR_API_KEY' \
--header 'content-type: application/json' \
--data '{
"sender":{
"name":"Alex from Brevo",
"email":"[email protected]"
},
"to":[
{
"email":"[email protected]",
"name":"John Doe"
}
],
"subject":"Hello from Brevo!",
"textContent":"Hello. This is my first transactional email sent from Brevo."
}'
Replace the API key, sender and recipient with your own.
Languages
Frameworks
Backends and automation
Which Brevo integrations for developers fit your stack?
REST API, when you write the sending code
The REST call is POST https://api.brevo.com/v3/smtp/email with the api-key header.
SMTP relay, when a tool already speaks SMTP
The SMTP relay host is smtp-relay.brevo.com. Use port 587 or 2525, or port 465 with SSL or TLS, and an SMTP key, not an API key. The SMTP relay does not support batch sending.
MCP server, when an AI assistant works in your account
Connect the main server, https://mcp.brevo.com/v1/brevo/mcp, for all features.


