This package provides Laravel email driver which uses DotDigital transactional emails via API.
In the root directory of the project, run:
composer require tavsec/laravel-dotdigital-mail-driver
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