Skip to content

Latest commit

 

History

History
28 lines (25 loc) · 740 Bytes

README.md

File metadata and controls

28 lines (25 loc) · 740 Bytes

Laravel DotDigital mail driver

This package provides Laravel email driver which uses DotDigital transactional emails via API.

Installation

In the root directory of the project, run:

composer require tavsec/laravel-dotdigital-mail-driver

Config

Add the following code snippet under config\mail.php:

    'mailers' => [
        # ...
        "dotdigital" => [
            "transport" => "dotdigital"
        ]
    ]

And change/add the following variables to your .env file:

MAIL_MAILER=dotdigital
# ...
DOTDIGITAL_REGION="r1"          # r1, r2 or r3
DOTDIGITAL_USERNAME="username"  # DotDigital API username
DOTDIGITAL_PASSWORD="password"  # DotDigital API password