Send email from Laravel
Send through the Brevo SMTP relay or the PHP SDK registered as a singleton in a service provider, then check delivery in the Brevo email logs.

Ask your AI agent
Use AI assistants to interact with your Brevo account using natural language.
Before I send email from my Laravel app, check that I have a verified sender and an authenticated sending domain. List what is missing.
Show the delivery, open and click events for my transactional emails in the last 3 days and flag any that did not deliver.
Read-only: it reads your Brevo account through the Brevo MCP server and changes nothing.
Set it up
Authenticate your sender
Configure your sending domain and sender in Brevo first. Domain authentication is required for reliable deliverability.
Pick SMTP or the SDK
For SMTP, copy your credentials from the SMTP tab in SMTP and API settings and use an SMTP key, not an API key. For the SDK, run composer require getbrevo/brevo-php and read the key with config('services.brevo.api_key').
Send and check the log
Trigger the route and confirm delivery in Brevo > Transactional > Email logs. The SMTP relay does not support batch sending, so use the API endpoints for batches.



How it works
Send through the Brevo SMTP relay, or register the PHP SDK client as a singleton in a service provider.The SMTP relay host is smtp-relay.brevo.com. Ports 587 and 2525 are non-encrypted, and 465 uses SSL or TLS.
For SMTP, use an SMTP key from the SMTP tab, not an API key.
For the SDK, install getbrevo/brevo-php with composer require.
The SMTP relay does not support batch sending, so use the API endpoints for batches.
<?php
require_once __DIR__ . '/vendor/autoload.php';
use Brevo\Brevo;
use Brevo\TransactionalEmails\Requests\SendTransacEmailRequest;
use Brevo\TransactionalEmails\Types\SendTransacEmailRequestSender;
use Brevo\TransactionalEmails\Types\SendTransacEmailRequestToItem;
$client = new Brevo(apiKey: 'your-api-key');
$result = $client->transactionalEmails->sendTransacEmail(
new SendTransacEmailRequest([
'subject' => 'Hello from Brevo!',
'htmlContent' => '<html><body><p>Hello,</p><p>This is my first transactional email.</p></body></html>',
'sender' => new SendTransacEmailRequestSender([
'name' => 'Alex from Brevo',
'email' => '[email protected]',
]),
'to' => [
new SendTransacEmailRequestToItem([
'email' => '[email protected]',
'name' => 'John Doe',
]),
],
])
);
echo 'Email sent. Message ID: ' . $result->messageId . PHP_EOL;
composer require getbrevo/brevo-php
// AppServiceProvider.php
use Brevo\Brevo;
public function register(): void
{
$this->app->singleton(Brevo::class, function () {
return new Brevo(apiKey: config('services.brevo.api_key'));
});
}
MAIL_MAILER=smtp
MAIL_HOST=smtp-relay.brevo.com
MAIL_PORT=587
MAIL_USERNAME=your-login@example.com
MAIL_PASSWORD=YOUR_SMTP_KEY
MAIL_ENCRYPTION=tls
MAIL_FROM_ADDRESS=noreply@yourdomain.com
MAIL_FROM_NAME="My App"
The .env tab uses your SMTP login and SMTP key. The SDK tab reads an API key from config. Keep keys out of your code.