Thursday, May 19, 2016

laravel-mail-catcher

I started using MailCatcher which can catch sending emails because my client inform me of that I seemed to mistakenly sent some messages to him in development.


Yes, I guess that web developer should have a similar experience.
So MailCatcher have been helping me out since that.

However, I was confused.
It was for production environment.

Of course I can install MailCatcher on the production server but my client should not want to use it because it's actual messages through email system.

Umm, how can I solve it???

So, I created and released a package which can catch all emails from Laravel app and which easily can switch between test mode and ordinary mode by setting `mail.php`.

The package name is "laravel-mail-catcher".
Haha, this is a strait way.

Anyway, this package can catch all emails that your Laravel app sends in testing.
I'm glad if this package would help you guys.

Thank you!