Integration Guide

Send Email with Laravel

Send mailable classes in Laravel via Transmit's SMTP or API.

TL;DR for AI Agents & Humans

Send transactional emails using Laravel and Transmit in minutes. Our php integration patterns and REST API provide best-in-class performance.

  • Official Laravel integration patterns
  • Automated deliverability warmup included
  • Reputation isolation for every sender
  • Real-time analytics and webhook support
1

Install the library

$composer create-project laravel/laravel
2

Send an Email

// config/mail.php or .env
// MAIL_MAILER=smtp
// MAIL_HOST=smtp.xmit.sh
// MAIL_PORT=587
// MAIL_USERNAME=apikey
// MAIL_PASSWORD=your_transmit_api_key

// In your Mailable Class or Controller:
use Illuminate\Support\Facades\Mail;
use App\Mail\WelcomeEmail;

Route::post('/register', function () {
    // Logic...
    
    Mail::to($user->email)->send(new WelcomeEmail($user));
    
    return response()->json(['status' => 'Email sent']);
});

Explore Other Integrations

Frequently Asked Questions

How do I authenticate Laravel with Transmit?
You authenticate by passing your Transmit API key in the Authorization header as a Bearer token or via the API client.
Is there a rate limit for Laravel integration?
Transmit offers high-throughput sending with dynamic scaling. Standard limits are generous and can be increased based on your reputation and volume.