2017 © Pedro Peláez
 

library laramailer

A simple mailing package using Laravel Mail and Blade for sending emails with an expressive syntax, and also the ability to store emails in a database for future viewing

image

andrefigueira/laramailer

A simple mailing package using Laravel Mail and Blade for sending emails with an expressive syntax, and also the ability to store emails in a database for future viewing

  • Saturday, May 6, 2017
  • by andre
  • Repository
  • 1 Watchers
  • 2 Stars
  • 48 Installations
  • HTML
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 9 Versions
  • 0 % Grown

The README.md

laramailer

A re-usable mailer component, which can send emails, and also store them for later use, (*1)

Installation

composer require andrefigueira\laramailer

Setup

Service provider

Add the LaramailerServiceProvider to your config/app.php, (*2)

Laramailer\Providers\LaramailerServiceProvider::class

Add the Uuid class as an alias in your config/app.php, (*3)

'Uuid'      => Rhumsaa\Uuid\Uuid::class,

Migrations and views publish

Run php artisan vendor:publish to copy the views and migrations, (*4)

Database table

Run php artisan migrate to install the emails table, (*5)

Add the config variables to your env file

MAIL_NOREPLY=noreply@email.com
MAIL_NOREPLY_NAME=ServiceName

Mail setup

Be sure to configure your mail driver too! I recommend mailgun, (*6)

Usage

use Laramailer\Utility\Mailer;

$mailer = new Mailer();

$mailer
    ->template('andrefigueira.laramailer.emails.default')
    ->to('andre@email.com')
    ->subject('Hey Andre!)
    ->with([
        'foo' => 'bar',
    ])
    ->send()
;

The Versions

06/05 2017

dev-master

9999999-dev

A simple mailing package using Laravel Mail and Blade for sending emails with an expressive syntax, and also the ability to store emails in a database for future viewing

  Sources   Download

MIT

The Requires

 

06/05 2017

1.0.6

1.0.6.0

A simple mailing package using Laravel Mail and Blade for sending emails with an expressive syntax, and also the ability to store emails in a database for future viewing

  Sources   Download

MIT

The Requires

 

21/03 2016

1.0.5

1.0.5.0

A simple mailing package using Laravel Mail and Blade for sending emails with an expressive syntax, and also the ability to store emails in a database for future viewing

  Sources   Download

MIT

The Requires

 

21/03 2016

dev-develop

dev-develop

A simple mailing package using Laravel Mail and Blade for sending emails with an expressive syntax, and also the ability to store emails in a database for future viewing

  Sources   Download

MIT

The Requires

 

21/03 2016

1.0.4

1.0.4.0

A simple mailing package using Laravel Mail and Blade for sending emails with an expressive syntax, and also the ability to store emails in a database for future viewing

  Sources   Download

MIT

The Requires

 

21/03 2016

1.0.3

1.0.3.0

A simple mailing package using Laravel Mail and Blade for sending emails with an expressive syntax, and also the ability to store emails in a database for future viewing

  Sources   Download

MIT

The Requires

 

20/03 2016

1.0.2

1.0.2.0

A simple mailing package using Laravel Mail and Blade for sending emails with an expressive syntax, and also the ability to store emails in a database for future viewing

  Sources   Download

MIT

The Requires

 

20/03 2016

1.0.1

1.0.1.0

A simple mailing package using Laravel Mail and Blade for sending emails with an expressive syntax, and also the ability to store emails in a database for future viewing

  Sources   Download

MIT

The Requires

 

20/03 2016

1.0.0

1.0.0.0

A simple mailing package using Laravel Mail and Blade for sending emails with an expressive syntax, and also the ability to store emails in a database for future viewing

  Sources   Download

MIT

The Requires