Package Data | |
---|---|
Maintainer Username: | andre |
Maintainer Contact: | andre.figueira@me.com (Andre Figueira) |
Package Create Date: | 2016-03-20 |
Package Last Update: | 2017-05-06 |
Language: | HTML |
License: | MIT |
Last Refreshed: | 2024-11-22 03:09:17 |
Package Statistics | |
---|---|
Total Downloads: | 64 |
Monthly Downloads: | 1 |
Daily Downloads: | 0 |
Total Stars: | 2 |
Total Watchers: | 2 |
Total Forks: | 0 |
Total Open Issues: | 0 |
A re-usable mailer component, which can send emails, and also store them for later use
composer require andrefigueira\laramailer
Add the LaramailerServiceProvider
to your config/app.php
Laramailer\Providers\LaramailerServiceProvider::class
Add the Uuid
class as an alias in your config/app.php
'Uuid' => Rhumsaa\Uuid\Uuid::class,
Run php artisan vendor:publish
to copy the views and migrations
Run php artisan migrate
to install the emails table
MAIL_NOREPLY=noreply@email.com
MAIL_NOREPLY_NAME=ServiceName
Be sure to configure your mail driver too! I recommend mailgun
use Laramailer\Utility\Mailer;
$mailer = new Mailer();
$mailer
->template('andrefigueira.laramailer.emails.default')
->to('andre@email.com')
->subject('Hey Andre!)
->with([
'foo' => 'bar',
])
->send()
;