
Most failed Brevo SMTP connections come down to one wrong field. This walkthrough gives you the exact settings, a step-by-step Brevo SMTP setup with code for WordPress, Python and Node.js, a fix table for the common errors, and a clear note on what Brevo's relay is and isn't built to send.
💡 TL;DR
For Brevo SMTP setup, use host smtp-relay.brevo.com, port 587 (STARTTLS) or 465 (SSL/TLS), your SMTP login from Settings → SMTP & API as the username, and an SMTP key — not an API key — as the password. Authenticate your sending domain first. The most common cause of a 535 error is putting smtp-relay.brevo.com in the username field. Brevo's free plan allows 300 emails a day, and its anti-spam policy prohibits purchased or scraped lists, so it isn't a cold outreach tool.
By LiteMail · Prices/data checked on November 25, 2026
Table of Contents
The 60-Second Answer
Brevo SMTP Settings Compared to Other Relays
How We Put This Guide Together
Before You Start: Authenticate Your Sending Domain
Step-by-Step: Generate Your SMTP Key
Port 587, 465 or 2525: Which to Use
Setup Examples: WordPress, Python and Node.js
Test the Connection Before Your App Does
Troubleshooting: Fixes for Common Brevo SMTP Errors
Free Plan Limits and Batch Sending
What Brevo SMTP Isn't Built For
Worked Example: A SaaS App's Password Resets
What Users Report
Final Verdict: Simple Setup, Clear Boundaries
Frequently Asked Questions
The 60-Second Answer
If you just need the values, here they are. Everything else in this guide explains why each one matters and what to do when it fails.
SMTP server: smtp-relay.brevo.com
Port: 587 with STARTTLS (recommended), 465 with SSL/TLS, or 2525
Username: your SMTP login from Settings → SMTP & API
Password: an SMTP key you generate on that page
From address: a verified sender on an authenticated domain
By the end of this guide, you'll have a working connection, a tested From address, and a fix for every error Brevo's own help center lists as common.
Brevo SMTP Settings Compared to Other Relays
Here's how the Brevo values compare with other common relays, so you can spot a copy-paste mistake from a previous provider.
Setting | Brevo | Mailgun | SendGrid |
|---|---|---|---|
Host | smtp-relay.brevo.com | smtp.mailgun.org | smtp.sendgrid.net |
Recommended port | 587 (STARTTLS) | 587 | 587 |
Other ports | 465 (SSL/TLS), 2525 | Varies by plan | Varies |
Username | SMTP login (email or ID@smtp-brevo.com) | SMTP login | Provider-specific |
Password | SMTP key (not API key) | SMTP password | API key |
💡 Migrating from Sendinblue?
Brevo was formerly Sendinblue. Brevo's own docs say to update the hostname from smtp.sendinblue.com to smtp-relay.brevo.com.
How We Put This Guide Together
Every setting here comes from Brevo's developer documentation and help center, checked on November 25, 2026. The code examples follow the patterns Brevo publishes for Python and Node.js. We didn't open a new Brevo account to send test traffic for this article; where behavior depends on your account age or plan, we say so.
Before You Start: Authenticate Your Sending Domain
Skip this and your Brevo SMTP setup can connect perfectly while mail still lands in spam. Gmail requires SPF or DKIM for all senders, and SPF, DKIM and DMARC for bulk senders.
In Brevo, go to Senders, Domains & Dedicated IPs and add your domain.
Publish the DNS records Brevo shows you, including DKIM and the Brevo code record.
Make sure your domain has a DMARC record. Start with p=none and a reporting address.
Wait for Brevo to show the domain as authenticated, then add your sender address.
Already running other mail on this domain? Your SPF record should include every service that sends for you. Our SPF, DKIM and DMARC guide explains how to merge records without breaking the 10-lookup limit.
Step-by-Step: Generate Your SMTP Key
In any Brevo SMTP setup, this is the step people get wrong most often, because Brevo has two kinds of keys.
Log in to Brevo and open Settings → SMTP & API.
Select the SMTP tab, not the API Keys tab.
Copy the value in the Login field. That's your username.
Click Generate a new SMTP key, name it after the app that will use it, and copy it once.
Store the key in a password manager or secret store. Don't paste it into code you commit.
🚩 Login is not the host
Depending on when your account was created, your SMTP login is either your account email or an address like 12345@smtp-brevo.com. It is never smtp-relay.brevo.com. Brevo's help center calls that mix-up one of the most common causes of the 535 error.
Port 587, 465 or 2525: Which to Use
All three work for a Brevo SMTP setup. The difference is how encryption starts and what your network allows.
Port | Encryption | Use when |
|---|---|---|
587 | STARTTLS (connection upgrades to TLS) | Default choice for apps and plugins |
465 | SSL/TLS from the first byte | Your library expects implicit TLS (secure: true) |
2525 | STARTTLS | Your host blocks 587 and 465 |
A common mistake: setting port 465 with encryption off, or port 587 with "SSL" forced on. Match the library setting to the port. In Nodemailer, for example, secure is true only for 465.
Setup Examples: WordPress, Python and Node.js
Same Brevo SMTP setup values, three environments. Swap in your own login and key.
WordPress (any SMTP plugin)
Mailer: Other SMTP or Brevo
SMTP host: smtp-relay.brevo.com
Encryption: TLS, port 587
Username: your SMTP login; Password: your SMTP key
From email: a verified sender on your authenticated domain
Python (smtplib)
Node.js (Nodemailer)
Test the Connection Before Your App Does
Don't debug SMTP through your app's error logs. Test the connection directly first, so you know whether the problem is credentials or code.
Check the port is open from your server:
nc -vz smtp-relay.brevo.com 587.Send a one-line test with the Python snippet above, from the same server your app runs on.
Open the test email in Gmail and choose Show Original.
Confirm SPF, DKIM and DMARC all say PASS for your domain.
Only then connect your app or plugin.
If step 4 shows DMARC failing, your domain authentication isn't finished, even though sending worked. Fix that before going live.
Troubleshooting: Fixes for Common Brevo SMTP Errors
Most Brevo SMTP setup failures map to a short list of causes. Brevo's troubleshooting article covers these; here they are in one table.
Error or symptom | Likely cause | Fix |
|---|---|---|
535 authentication failed | Relay host used as username, or API key used as password | Use the SMTP login and an SMTP key |
535 after it used to work | SMTP key invalidated or regenerated | Generate a new key and update the app |
Sender is invalid | SMTP login used as the From address | Use a verified sender on your domain |
Connection timeout | Port blocked by host or firewall | Try 2525, or ask your host to open 587 |
Delivered but in spam | Domain not authenticated or DMARC failing | Finish domain authentication; check alignment |
Stops after 300 emails | Free plan daily cap | Upgrade or spread sends across days |
Still stuck after all of that? Check Brevo's status page for an incident before you change anything else.
Free Plan Limits and Batch Sending
Brevo's free plan allows 300 emails a day. That's fine for a side project's password resets. It isn't fine for a product with real signups, where a busy day can hit the cap before lunch.
Brevo's developer docs also note the SMTP relay doesn't support batch sending and is designed for transactional email. For bulk sends, Brevo points to its batch sending API instead.
Under 300 transactional emails a day: free plan works.
Steady growth: move to a paid plan before you hit the cap, not after.
Bulk newsletters: use Brevo's campaign tools or API, not the SMTP relay.
What Brevo SMTP Isn't Built For
You might be wondering whether you can point a cold outreach tool at Brevo's relay. Don't. Brevo's anti-spam policy prohibits lists that were scraped, acquired or purchased, and says it applies to both transactional and marketing messages. Accounts that break the policy risk suspension.
Cold B2B outreach runs on a different model: real mailboxes on separate sending domains, low volume per inbox, and replies handled like normal email. That's what pre-warmed Google Workspace and Microsoft 365 inboxes are for. Keep Brevo for the mail your users asked for, and use outreach infrastructure for outreach. Our cold email infrastructure overview shows how the pieces fit.
Worked Example: A SaaS App's Password Resets
A 3-person SaaS team needs password resets and signup confirmations, around 150 a day, from their Laravel app on a VPS. This is an illustrative setup to show the steps, not a client case study.
Step | What they did | Time |
|---|---|---|
1 | Authenticated mail.theirapp.com in Brevo | 15 min + DNS wait |
2 | Generated an SMTP key named "laravel-prod" | 2 min |
3 | Set host, port 587, TLS, login and key in .env | 5 min |
4 | Tested with a one-line script from the VPS | 5 min |
5 | Checked Show Original in Gmail: all PASS | 2 min |
This is a hypothetical but typical setup. At 150 a day they sit comfortably under the free plan's 300 cap. When signups double, they'll need a paid plan. Their sales team, meanwhile, sends outreach from separate cold email inboxes for SaaS teams, so a bad prospect list never touches the domain their password resets depend on.


