Download the PHP package mdhesari/laravel-driver without Composer
On this page you can find all versions of the php package mdhesari/laravel-driver. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mdhesari/laravel-driver
More information about mdhesari/laravel-driver
Files in mdhesari/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
This is an example mailable 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
illuminate/support Version ^8.0|^9.0
php-http/guzzle7-adapter Version ^1.0
mailersend/mailersend Version ^0.8.0
nyholm/psr7 Version ^1.5
symfony/mailer Version ^6.0
ext-json Version *