homicity / laravel-mandrill
A laravel mail macro to use mandrill templates
Installs: 2 938
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 3
Forks: 3
Open Issues: 3
Requires
- php: ^7.0
- laravel/framework: ~5.5.0|~5.6.0|~5.7.0
- mandrill/mandrill: ^1.0
Requires (Dev)
- orchestra/testbench: ~3.5.0|~3.6.0|~3.7.0
- phpunit/phpunit: ^6.2|^7.0
This package is auto-updated.
Last update: 2024-04-11 23:55:38 UTC
README
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('john@example.com')
->name('John Doe')
->templateName('template-name')
->fromEmail('no-reply@example.com')
->fromName('Example Website')
->subject('Hello Mandrill')
->send();