homicity/laravel-mandrill

A laravel mail macro to use mandrill templates

Downloads

2939

Stars

2

Version

101

Installation

composer require homicity/laravel-mandrill

Then publish the config file

php artisan vendor:publish --provider="Homicity\MandrillMailable\Providers\MandrillMailableServiceProvider" --tag="config"

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}

Usage

Mail::mandrill()
    ->to('[email protected]')
    ->name('John Doe')
    ->templateName('template-name')
    ->fromEmail('[email protected]')
    ->fromName('Example Website')
    ->subject('Hello Mandrill')
    ->send();
Homicity

Author

Homicity