Everything you need to get started with LaravelSMTP
Get up and running in under 5 minutes
composer require laravelsmtp/laravel-smtp
Add the package to your Laravel project via Composer.
LSMTP_PROVIDER=ses
LSMTP_FROM_ADDRESS=noreply@yourdomain.com
Set your provider and from address in your environment file.
php artisan laravelsmtp:test you@domain.com
Verify your configuration by sending a test email.
Configure AWS Simple Email Service for reliable, scalable email delivery.
Set up Mailgun for powerful email delivery with detailed analytics.
Configure Postmark for fast transactional email delivery.
Set up SendGrid for email marketing and transactional emails.
Configure Gmail and Google Workspace for email delivery.
Connect any SMTP server for custom email delivery solutions.
Switch email providers per tenant or user at runtime for SaaS applications.
LaravelSMTP::forTenant($tenant)
->provider('mailgun')
->send($mailable);
Automatically process delivery events, bounces, and complaints.
Route::post('/webhooks/email',
[WebhookController::class, 'handle']);
Automatically fallback to backup providers when primary fails.
LSMTP_PROVIDER=ses
LSMTP_FALLBACK_PROVIDER=mailgun
Built-in commands for testing email delivery and DNS configuration.
php artisan laravelsmtp:doctor
php artisan laravelsmtp:test email@domain.com