How to test emails
Created 6 years ago by cleancookieIs there an easy way to catch all emails and send them to a specific email address? I am using valet but I am able to Homestead too which might have something built in I dont know about?
I know that Laragon has a feature which catches all mail()
s but I am sadly not on Windows
ryanthompson
—
6 years ago
Ya I use log driver a lot of times locally - and mailtrap sometimes too. But it's native Laravel configuration for that kinda thing.
radja
—
5 years ago
Seems complicated, I like to use http://nilhcem.com/FakeSMTP/ on my localhost. However with this version of pyro PHP mail doesn't work, so I change the mail config on the local server to use SMTP.
Looks like this is what I needed https://laravel.com/docs/5.6/mail#mail-and-local-development