Download the PHP package jestherthejoker/laravel-driver without Composer
On this page you can find all versions of the php package jestherthejoker/laravel-driver. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jestherthejoker/laravel-driver
More information about jestherthejoker/laravel-driver
Files in jestherthejoker/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
- Upgrade and Guzzle 6 support
- Usage
- Support and Feedback
- License
Installation
Requirements
- Laravel 7.0+
- PHP 7.4+
- Guzzle 7.0+
- An API Key from mailersend.com
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
:
Upgrade and Guzzle 6 support
Upgrading from v0.1
If you are upgrading from v0.1
branches, please do note that you will need to upgrade Guzzle to atleast version 7. Please consult official guide for more info.
Usage
This is an example mailable that you can use to send an email with.
app/Mail/TestEmail.php
Attachments are added through standard Laravel methods.
We provide a MailerSendTrait
trait that adds a mailersend
method to the mailable and allows you to use templates, variables & tags support 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 ^7.0|^8.0
php-http/guzzle7-adapter Version ^0.1
mailersend/mailersend Version ^0.3.1
nyholm/psr7 Version ^1.3