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
- Queue your mail. Mailables that implement
ShouldQueueare sent by a worker, so a slow network never delays a page. - Prioritise what people wait for. Add the header
X-TrivSend-Priority: highto OTP and password-reset mailables, so they go out before bulk mail (priority). - Tag your mail with
X-TrivSend-Tags: category=invoiceto filter the log and stats by type. - Know when mail bounces. A signed webhook tells your app about bounces and complaints in real time (webhooks).
Why TrivSend for Laravel apps
- DKIM, SPF and DMARC for your own domain, set up from the dashboard, or added for you at Cloudflare.
- Bounce and complaint handling with an automatic suppression list.
- An email log with delivery events for every message, and an API when you outgrow SMTP.
- Free for 3,000 emails a month; paid plans from ₹999 for 50,000 (pricing).
Also see: SMTP relay · Transactional email