2017 © Pedro Peláez
 

library laravel-mailer

Prevents from sending email on dev/staging environments.

image

desmart/laravel-mailer

Prevents from sending email on dev/staging environments.

  • Friday, February 20, 2015
  • by DeSmart
  • Repository
  • 10 Watchers
  • 1 Stars
  • 48 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 7 Versions
  • 0 % Grown

The README.md

Build Status Total Downloads License, (*1)

desmart/laravel-mailer

Did you by mistake send e-mails from dev machine to production users? We did., (*2)

To prevent this situations we created a simple catch-all extension for default Laravel mailer. It will send e-mails only to whitelisted addresses (or to a fallback e-mail address)., (*3)

This package is meant only for dev/test/staging environments., (*4)

Installation

  1. Add package to composer: composer require "desmart/laravel-mailer:1.2.*"
  2. Publish configuration: php artisan vendor:publish
  3. Edit configuration file: config/desmart-laravel-mailer.php
  4. Replace Illuminate\Mail\MailServiceProvider with DeSmart\LaravelMailer\MailServiceProvider

How it works?

When mailer is enabled it replaces default \Illuminate\Mail\Mailer. Every to(), cc(), bcc() method call will be intercepted., (*5)

If e-mail address is not in whitelist (note: we only do whitelists by domain so be careful with this) it will be changed to desmart-laravel-mailer.email address., (*6)

That way every e-mail sent by Laravel will be redirected only to trusted users., (*7)

Laravel compatibility

This package should not break compatibility with Laravel Mailer., (*8)

Laravel 4.2

To use desmart/laravel-mailer with Laravel 4.2 switch version to 1.1.*, (*9)

Laravel 4.1

To use desmart/laravel-mailer with Laravel 4.1 switch version to 1.0.*, (*10)

The Versions

20/02 2015

dev-master

9999999-dev

Prevents from sending email on dev/staging environments.

  Sources   Download

MIT

The Requires

 

20/02 2015

1.2.0

1.2.0.0

Prevents from sending email on dev/staging environments.

  Sources   Download

MIT

The Requires

 

25/11 2014

1.1.0

1.1.0.0

Prevents from sending email on dev/staging environments.

  Sources   Download

MIT

The Requires

 

24/11 2014

1.0.3

1.0.3.0

Prevents from sending email on dev/staging environments.

  Sources   Download

MIT

The Requires

 

10/11 2014

1.0.2

1.0.2.0

Prevents from sending email on dev/staging environments.

  Sources   Download

MIT

The Requires

 

08/11 2014

1.0.1

1.0.1.0

Prevents from sending email on dev/staging environments.

  Sources   Download

MIT

The Requires

 

07/11 2014

1.0.0

1.0.0.0

Package catch wrong e-mails sending from developer servers to real user accounts.

  Sources   Download

The Requires