SMTP for Laravel — Mail::send() with Open & Click Tracking

Laravel's mail driver supports SMTP out of the box. Point it at RAPID SMTP and get the campaign UI, contact lists, and tracking your app's `Mail::send()` calls don't ship with.

Published January 15, 2026 · By RAPID SMTP

The problem for Laravel developers

  • `config/mail.php` sends raw SMTP — no campaign UI, no analytics.
  • You need a separate tool for newsletters and another for transactional.
  • Bounce + complaint handling is DIY.

How RAPID SMTP solves it

Drop-in SMTP transport

Set `MAIL_MAILER=smtp` and use RAPID SMTP's host/port. No package install needed.

Shared template library

Define Blade templates in RAPID SMTP. Trigger them by name from your Laravel app via the REST API.

Webhooks back into Laravel

Bounce/complaint events POST to your route — handle suppression in your own User model.

Setup in 4 steps

  1. Add RAPID SMTP credentials to your `.env`: `MAIL_HOST`, `MAIL_PORT=587`, `MAIL_USERNAME`, `MAIL_PASSWORD`.
  2. Run `php artisan tinker` → `Mail::raw('hello', fn($m) => $m->to('you@x.com'));` to confirm relay.
  3. Create a Mailable per template and reference it from queued jobs.
  4. Subscribe to RAPID SMTP webhooks to ingest bounce/complaint events.

Code snippet

// .env
MAIL_MAILER=smtp
MAIL_HOST=smtp.rapidhostbd.com
MAIL_PORT=587
MAIL_USERNAME=your-relay-key
MAIL_PASSWORD=your-relay-secret
MAIL_ENCRYPTION=tls
MAIL_FROM_ADDRESS="hello@yourdomain.com"
MAIL_FROM_NAME="${APP_NAME}"

Recommended SMTP providers

  • Amazon SES
  • Mailgun
  • Postmark

FAQ

Does Laravel queue work with RAPID SMTP?

Yes — RAPID SMTP is a plain SMTP relay. Laravel's queue+mail combo works unchanged.

Ready to send your first campaign?

Connect your own SMTP and send bulk email starting at $0.59/month.

Related posts