tavsec/laravel-dotdigital-mail-driver

Laravel email driver for DotDigital transactional emails

1.1.1 2023-03-16 10:53 UTC

This package is auto-updated.

Last update: 2024-04-16 13:01:10 UTC


README

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