Download the PHP package mailersend/laravel-driver without Composer
On this page you can find all versions of the php package mailersend/laravel-driver. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mailersend/laravel-driver
More information about mailersend/laravel-driver
Files in mailersend/laravel-driver
Package laravel-driver
Short Description MailerSend Laravel Driver
License MIT
Homepage https://github.com/mailersend/mailersend-laravel-driver
Informations about the package laravel-driver
MailerSend Laravel Driver
Table of Contents
- Installation
- Usage
- Support and Feedback
- License
Installation
Requirements
- Laravel 9.0+
- PHP 8.0+
- Guzzle 7.0+
- An API Key from mailersend.com
For Laravel 7.x - 8.x support see 1.x branch
Setup
You can install the package via composer:
After that, you need to set MAILERSEND_API_KEY
in your .env
file:
Add MailerSend as a Laravel Mailer in config/mail.php
in mailers
array:
And set environment variable MAIL_MAILER
in your .env
file
Also, double check that your FROM
data is filled in .env
:
Usage
Old Syntax:
This is an example using the build mailable that you can use to send an email with.
app/Mail/TestEmail.php
New Syntax:
This is an example using the new mailable syntax that you can use to send an email with.
app/Mail/TestEmail.php
We provide a MailerSendTrait
trait that adds a mailersend
method to the mailable and allows you to use additional options that are available through our API.
After creating the mailable, you can send it using:
Please refer to Laravel Mail documenation and MailerSend API documentation for more information.
Support and Feedback
In case you find any bugs, submit an issue directly here in GitHub.
If you have any troubles using our driver, feel free to contact our support by email [email protected]
Official API documentation is at https://developers.mailersend.com
License
The MIT License (MIT)
All versions of laravel-driver with dependencies
ext-json Version *
illuminate/support Version ^9.0 || ^10.0 || ^11.0
mailersend/mailersend Version ^0.8.0 || ^0.23.0 || ^0.24.0
nyholm/psr7 Version ^1.5
php-http/guzzle7-adapter Version ^1.0
symfony/mailer Version ^6.0 || ^7.0