Framework Integration

Laravel + Unosend

Send transactional emails from your Laravel application using Unosend. Integrate with Laravel Mail or use the API directly. Full Blade template support.

Features

Everything you need to send emails from Laravel

Laravel Mail driver

Blade template support

Queue integration (Horizon)

Mailable class support

Laravel Notification channels

Quick Start

Get up and running in minutes with this code example

Code Example
// app/Mail/WelcomeEmail.php
use Illuminate\Mail\Mailable;

class WelcomeEmail extends Mailable {
    public function __construct(public User $user) {}

    public function content(): Content {
        return new Content(view: 'emails.welcome');
    }
}

// Send via REST API
$response = Http::withHeaders([
    'Authorization' => 'Bearer ' . config('services.unosend.key'),
])->post('https://api.unosend.co/v1/emails', [
    'from' => 'hello@yourdomain.com',
    'to' => $user->email,
    'subject' => 'Welcome!',
    'html' => view('emails.welcome', ['user' => $user])->render(),
]);

Setup Guide

Follow these steps to integrate Unosend with Laravel

1

Add UNOSEND_API_KEY to your .env file

2

Configure config/services.php with Unosend credentials

3

Create Mailable classes with Blade templates

4

Or use HTTP client for direct API calls

5

Optionally queue emails with Laravel Horizon

Why Use Unosend with Laravel?

Native Laravel Mail integration

Queue support for async sending

Works with Blade email templates

Easy switch from other mail drivers

Ready to integrate?

Start sending emails from Laravel in under 5 minutes. Free tier includes 5,000 emails/month.