landrok/laravel-mailpro-driver

Mailpro Maxony transport for Laravel

1.3.0 2020-06-15 12:21 UTC

This package is auto-updated.

Last update: 2024-12-15 22:47:30 UTC


README

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.