How to test emails
Created 1 year ago by cleancookie

Is 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

cleancookie  —  1 year ago Best Answer
edster  —  1 year ago

Yea I use mailtrap, just put the values in your .env and it will work

ryanthompson  —  1 year 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  —  4 months 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.