Send emails with Laravel API

Fast, reliable transactional email API for your Laravel projects.

MailerSend

Start sending now with the official Laravel driver

Quickly install the Laravel driver via composer and use “mailables” to create your emails and start sending
Read our API docs
<?php

namespace App\Mail;

use Carbon\Carbon;
use Illuminate\Bus\Queueable;
use Illuminate\Mail\Mailable;
use Illuminate\Mail\Mailables\Attachment;
use Illuminate\Mail\Mailables\Content;
use Illuminate\Mail\Mailables\Envelope;
use Illuminate\Queue\SerializesModels;
use Illuminate\Support\Arr;
use MailerSend\Helpers\Builder\Personalization;
use MailerSend\Helpers\Builder\Variable;
use MailerSend\LaravelDriver\MailerSendTrait;

class TestEmail extends Mailable
{
    use Queueable, SerializesModels, MailerSendTrait;

    /**
     * Create a new message instance.
     */
    public function __construct()
    {
        //
    }

    /**
     * Get the message envelope.
     */
    public function envelope(): Envelope
    {
        return new Envelope(
            subject: 'Test Email',
        );
    }

    /**
     * Get the message content definition.
     */
    public function content(): Content
    {
        $to = Arr::get($this->to, '0.address');

        // Additional options for MailerSend API features
        $this->mailersend(
            template_id: null,
            tags: ['tag'],
            personalization: [
                new Personalization($to, [
                    'var' => 'variable',
                    'number' => 123,
                    'object' => [
                        'key' => 'object-value'
                    ],
                    'objectCollection' => [
                        [
                            'name' => 'John'
                        ],
                        [
                            'name' => 'Patrick'
                        ]
                    ],
                ])
            ],
            precedenceBulkHeader: true,
            sendAt: new Carbon('2022-01-28 11:53:20'),
        );

        return new Content(
            view: 'emails.test_html',
            text: 'emails.test_text'
        );
    }

    /**
     * Get the attachments for the message.
     *
     * @return array<int, \Illuminate\Mail\Mailables\Attachment>
     */
    public function attachments(): array
    {
        return [
            Attachment::fromStorageDisk('public', 'example.png')
        ];
    }
}

Laravel email done right

Straightforward integration

Quick to integrate with the official MailerSend driver, in-depth documentation and API reference.

Built for Laravel

Works seamlessly with Laravel’s Mailer service for smooth, reliable email delivery for your Laravel projects.

Developer-first

Created by developers, for developers, with a focus on features that you actually need and simple implementation.

Reliable sends

Managed by deliverability experts to reduce bounces and spam complaints and reach more inboxes.

MailerSend

SMTP-ready for traditional workflows

Secure and robust SMTP relay for integration with legacy systems or existing Mailer setups. Simply plug in your SMTP server credentials and start sending.

MailerSend

Transactional emails personalized at scale

Easily create dynamic email templates personalized with order information, account activity, reservation details and more. One template, thousands of unique sends.

MailerSend

Smart email routing

Capture and parse incoming emails with inbound routing, then route them to endpoints or addresses. Automate workflows, feed data into apps or CRMs, and build email-driven features.

MailerSend

Real-time email validation API

Integrate real-time email verification checks at the point of signup to validate addresses before they get submitted. Keep your database clean and provide instant feedback to users.

Get help whenever you need it

Need help getting started, troubleshooting an issue, or trying out an advanced feature? Our award-winning customer support team is just a click away.

93% satisfaction rate
100% response rate
24/7 support hours
I would recommend MailerSend because of the great support I got every time I struggled with something. Fast response times and competent help is my main experience so far. The API documentation and integration are straightforward. Templates can be handled by marketing without developer skills.
Norbert N. CTO
Before MailerSend, we were always worried that emails would go to spam or promotions, but now our clients sometimes ask "How did your FIRST email get into my inbox with a star on it?". For us, email is critical for the businesses that we help and MailerSend plays a critical role. Better still, they have humans that respond and read what you write to them.
Rodrigo S. CEO
Very good tool, it took me just one day to get it working on production. The interface is clean with everything exactly where expected. It works fantastically—emails are delivered immediately and as configured (conditional statements saved my life, no need to create lots of templates). The API documentation is also fantastic, plus the support team is really fast! 10 out of 10.
Roger S. -

Start sending now

Sign up for the free trial to try out hassle-free email sending for your Laravel projects. Subscribe to the Free plan for up to 500 emails/month.

Pricing

Four simple plans, no hidden costs. Start with 500 emails/month for free and upgrade to get more volume or features.
How many emails do you plan to send?
3K
Pricing in Euros and British Pounds is for informational purposes only. All billing invoices will be charged in US dollars.
Recommended
Professional

For agencies and white-label resellers sending at scale

$88.00 /month
$1,056.00 billed yearly
81.12 /month
€973.39 billed yearly
£68.23 /month
£818.79 billed yearly
$110.00 /month 101.39 /month £85.29 /month
50,000 emails /month
150 SMS /month
400 email verification credits
Extra usage
$0.90 0.90 £0.90 /1,000 emails
$1.40 1.40 £1.40 /100 SMS
Recommended
Starter

For growing startups and small businesses

$28.00 /month
$336.00 billed yearly
25.81 /month
€309.71 billed yearly
£21.71 /month
£260.53 billed yearly
$35.00 /month 32.26 /month £27.14 /month
50,000 emails /month
100 SMS /month
100 email verification credits
Extra usage
$0.90 0.90 £0.90 /1,000 emails
$1.40 1.40 £1.40 /100 SMS
Recommended
Hobby

For personal projects and side hustles

$ 5.60 /month
$67.20 billed yearly
5.15 /month
€61.83 billed yearly
£4.43 /month
£53.18 billed yearly
$7.00 /month 6.44 /month £5.53 /month
5,000 emails
100 email verification credits
Extra usage
$1.20 1.20 £1.20 /1,000 emails
Free

For occasional email testing and sending

$0
500 emails
10 email verification credits
Enterprise

For large organizations with special requirements

Designed for scale — includes everything in Professional, plus:
  • 14-days API logs retention
  • Enterprise-grade support
  • Dedicated IP
*Learn more about plan limits.   |   Taxes may apply, learn more.

FAQs

Why should I use the MailerSend driver over Laravel's default SMTP driver?

MailerSend’s Laravel mail driver uses our secure, reliable email API for high deliverability and advanced features. Laravel’s own recommended method is to use an API with an official driver.

What are the prerequisites for using MailerSend with my Laravel project?

To use MailerSend’s email service with your Laravel application, you’ll need Laravel 9.0+, PHP 8.0+, Guzzle 7.0+, and a MailerSend API key.

Where can I find my API key to configure the driver?

From the MailerSend dashboard, go to Email, Domains, click on your domain, and go to the API tokens section. Learn more about managing API keys

How difficult is it to set up and configure the MailerSend driver?

We’ve made it as simple as possible for developers with experience using Laravel to get started and provide ample documentation on how to do so. Learn more about the MailerSend Laravel driver.

Can I use my existing Laravel Mailables and notifications?

Yes, you’ll need to configure Laravel to use MailerSend as the default mailer in your configuration file. 

Is there a free plan to test the Laravel integration?

Yes, there is a Trial plan, which includes a free trial domain for testing and 100 emails. You can also subscribe to a Free plan, which gives you 500 emails per month or upgrade for as little as $7 per month for more emails. Learn more about our plans, features and limits.

What kinds of emails can I send with MailerSend’s Laravel driver?

You can send all kinds of transactional messages, alerts and notifications with MailerSend and Laravel, including e-commerce emails, such as order confirmations and shipping updates, transactional emails for SaaS, such as OTPs and password resets, and messages for banks and financial services, such as account statements and security alerts. Check out our transactional email solutions page for more ways to use MailerSend.