Download the PHP package data33/laravel-mailgun without Composer
On this page you can find all versions of the php package data33/laravel-mailgun. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download data33/laravel-mailgun
More information about data33/laravel-mailgun
Files in data33/laravel-mailgun
Package laravel-mailgun
Short Description Send emails from multiple domains with mailgun
License MIT
Homepage https://github.com/Data33/laravel-mailgun
Informations about the package laravel-mailgun
Data33/Laravel-Mailgun
A package for sending emails using the Mailgun HTTP API. One of the main advantages is that you can send emails from any domains connected to your Mailgun API key.
Installation
Open your composer.json
file and add the following to the require
key:
"data33/laravel-mailgun": "^2"
After adding the key, run composer update from the command line to install the package
Configuration
Before you can start using the package we need to set some configurations.
To do so you must first publish the config file, you can do this with the following artisan
command.
After the config file has been published you can find it at: config/mailgun.php
In it you must specify your Mailgun API key.
Usage with Laravel
Usage without Laravel
The easiest way to use this package without Laravel is to directly instantiate a Transporter
of your choice.
For example:
Upgrade from 1.3.0
Since EU domains need calls to a different API URL it seemed fitting to not keep it hardcoded within this package. To upgrade your old code base, change the first argument from domain name to the full URL to Mailgun's Messages API for your domain For example:
All versions of laravel-mailgun with dependencies
illuminate/contracts Version >=6
illuminate/support Version >=6