Looking to hire Laravel developers? Try LaraJobs

laravel-mailpro-driver maintained by landrok

Description
Mailpro Maxony transport for Laravel
Last update
2020/06/15 14:21 (dev-master)
License
Downloads
86
Tags

Comments
comments powered by Disqus

laravel-mailpro-driver

A PHP library to send an email only to one email with Laravel using Mailpro API (Maxony).

API manual (PDF)

Before using this library, you MUST have :

  • an API Key
  • a client id
  • an email id (From)

Install

composer require landrok/laravel-mailpro-driver

Configuration

First, you must publish the configuration file and then configure your API parameters in the .env file.

Publish configuration

php artisan vendor:publish --tag=mailproconfig

It creates a mailpro.php file in your config/ folder.

Environment parameters

Change default mail driver config in .env:

MAIL_DRIVER=mailpro

Add your parameters to your .env:

MAILPRO_CLIENT_ID=123456
MAILPRO_API_KEY=myApiKey
MAILPRO_EMAIL_ID=654321

Usage

There is nothing more to do. Now, all classes that extends a Mailable (Illuminate\Mail\Mailable) will use this driver.