Send email from Appwrite Functions
Keep your Brevo API key in an Appwrite Function's environment variables and send email, SMS and WhatsApp through one Brevo REST API.

What teams build with Brevo on Appwrite
Account emails
Transactional emails are automated, non-promotional messages triggered by user actions such as account creation, order confirmations, and password resets. Configure your sending domain and sender before sending emails, see senders and domains.
- A welcome email after signup, from your own domain.
- A password reset or magic link, sent within seconds.
- An invite email when a user adds a teammate.

Set up Brevo in Appwrite
Create your Brevo API key
In Brevo, open Settings > SMTP & API > API Keys & MCP and click Generate a new API key. The key is displayed once. Verify the sender's email and authenticate the domain so the sender appears as verified.
Pass the key to the function
Pass constants and secrets into your function with environment variables. Read them inside your function using your runtime's standard environment lookup.
Send and check the logs
Have the function POST to https://api.brevo.com/v3/smtp/email with the key in the api-key header. Invoke it from Appwrite SDKs, HTTP calls or Appwrite events; the messageId in the response tracks the email in the transactional email logs.



What you can do with Brevo on Appwrite
Send transactional email
Transactional emails are automated, non-promotional messages triggered by user actions such as account creation, order confirmations, and password resets. The Free plan includes 300 emails a day.
Manage contacts through the API
Brevo's API manages contacts, tracks custom events, and syncs eCommerce data.
Receive transactional events by webhook
When an event occurs, Brevo sends an HTTP POST request in real time to the notification URL you define. Transactional email events include sent, delivered, opened and clicked.
Beyond email
Brevo's API sends messages across email, SMS, and WhatsApp.



