Laravel email with TrivSend

Use TrivSend as Laravel's mail server: no package to install, just your .env. Mailables, notifications, password resets and queued mail all go through it, signed for your domain and logged with their delivery results.

Start free · Laravel setup in the docs

Configure Laravel

In .env (Laravel 11 and later):

bash
MAIL_MAILER=smtp
MAIL_HOST=smtp.trivsend.com
MAIL_PORT=587
MAIL_USERNAME=trivsend
MAIL_PASSWORD=ts_...
MAIL_FROM_ADDRESS=noreply@notify.example.com
MAIL_FROM_NAME="${APP_NAME}"

Port 587 upgrades to TLS by itself. On Laravel 10 and earlier, also set MAIL_ENCRYPTION=tls. Then clear the config cache and send a test:

bash
php artisan config:clear
php artisan tinker
>>> Mail::raw('It works', fn ($m) => $m->to('you@example.com')->subject('TrivSend test'));

The email appears in your TrivSend log with its delivery result.

Tips

Why TrivSend for Laravel apps

Also see: SMTP relay · Transactional email