Email that just works
with Laravel
Drop-in SMTP or API driver for Laravel Mail, notifications, and queues. Start sending in under 5 minutes.
Code examples
Three ways to send email from Laravel with GetMailer.
SMTP config
Add GetMailer credentials to your .env file. Every existing Mailable and Notification works immediately.
MAIL_MAILER=smtp
MAIL_HOST=smtp.getmailer.co
MAIL_PORT=587
MAIL_USERNAME=apikey
MAIL_PASSWORD=your_getmailer_api_key
MAIL_ENCRYPTION=tls
[email protected]
MAIL_FROM_NAME="${APP_NAME}"Using the Mail facade
Send emails with Laravel's standard Mail facade. Use Mailables for clean, testable email classes.
<?php
namespace App\Mail;
use Illuminate\Bus\Queueable;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
class WelcomeEmail extends Mailable
{
use Queueable, SerializesModels;
public function __construct(
public string $name
) {}
public function build()
{
return $this->subject("Welcome, {$this->name}!")
->view('emails.welcome');
}
}use App\Mail\WelcomeEmail;
use Illuminate\Support\Facades\Mail;
Mail::to($user->email)->send(new WelcomeEmail($user->name));
// Or queue it for background delivery
Mail::to($user->email)->queue(new WelcomeEmail($user->name));Notifications
Use Laravel Notifications to send email alongside other channels like SMS and Slack.
<?php
namespace App\Notifications;
use Illuminate\Notifications\Notification;
use Illuminate\Notifications\Messages\MailMessage;
class OrderShipped extends Notification
{
public function __construct(
public $order
) {}
public function via($notifiable)
{
return ['mail'];
}
public function toMail($notifiable)
{
return (new MailMessage)
->subject('Your order has shipped!')
->greeting("Hi {$notifiable->name},")
->line("Order #{$this->order->id} is on its way.")
->action('Track Order', url("/orders/{$this->order->id}"))
->line('Thank you for your purchase!');
}
}
// Send it
$user->notify(new OrderShipped($order));Built for the Laravel ecosystem
Everything a Laravel developer needs to ship production email.
SMTP driver
Add your credentials to .env and Laravel sends through GetMailer. Zero code changes.
API driver
Use the REST API directly for advanced features like scheduling, templates, and tracking.
Queue compatible
Works with Laravel queues out of the box. Dispatch emails to Redis, SQS, or database queues.
Notification channel
Send emails through Laravel Notifications with the GetMailer channel driver.
Blade templates
Keep using Blade for email templates, or switch to GetMailer-hosted templates.
Forge & Vapor ready
Deploy to Forge, Vapor, or any hosting platform. One environment variable is all you need.
Ready to get started?
Start sending emails from Laravel in under 5 minutes.