| Package Data | |
|---|---|
| Maintainer Username: | Sukohi |
| Maintainer Contact: | capilano.sukohi@gmail.com (Sukohi) |
| Package Create Date: | 2016-05-19 |
| Package Last Update: | 2016-05-19 |
| Home Page: | |
| Language: | PHP |
| License: | MIT |
| Last Refreshed: | 2025-11-26 03:05:40 |
| Package Statistics | |
|---|---|
| Total Downloads: | 19 |
| Monthly Downloads: | 0 |
| Daily Downloads: | 0 |
| Total Stars: | 0 |
| Total Watchers: | 1 |
| Total Forks: | 0 |
| Total Open Issues: | 0 |
A Laravel package to forcedly change sending email address when email testing.
(This is for Laravel 5+. For Laravel 4.2)
Execute composer command.
composer require sukohi/mail-catcher:2.*
Replace the service provider in app.php
Illuminate\Mail\MailServiceProvider::class to Sukohi\MailCatcher\MailCatcherServiceProvider::class
Also alias
'Mail' => Illuminate\Support\Facades\Mail::class to 'Mail' => Sukohi\MailCatcher\Facades\Mailer::class
You can use \Mail::send() as well as before.
However if config/mail.php has mail_catcher value like the below, sending email address will change forcedly.
return array(
// Others
'mail_catcher' => client@example.com
);
or you can set multiple email addresses.
return array(
// Others
'mail_catcher' => [
'client@example.com',
'client2@example.com',
]
);
This package is licensed under the MIT License.
Copyright 2016 Sukohi Kuhoh