A laravel mail macro to use mandrill templates
homicity/laravel-mandrill is a Laravel package for a laravel mail macro to use mandrill templates.
It currently has 2 GitHub stars and 2.952 downloads on Packagist (latest version 101).
Install it with composer require homicity/laravel-mandrill.
Discover more Laravel packages by homicity
or browse all Laravel packages to compare alternatives.
Last updated
composer require homicity/laravel-mandrill
Then publish the config file
php artisan vendor:publish --provider="Homicity\MandrillMailable\Providers\MandrillMailableServiceProvider" --tag="config"
Add into your .env file
MANDRILL_SECRET={your mandrill api key}
MANDRILL_FROM_EMAIL={your from email address}
MANDRILL_FROM_NAME={your from name}
Mail::mandrill()
->to('[email protected]')
->name('John Doe')
->templateName('template-name')
->fromEmail('[email protected]')
->fromName('Example Website')
->subject('Hello Mandrill')
->send();