Hey guys,
I just released a new package for using Mailtrap to catch all emails in non-production environments. Not to be confused with Mailhog, which Trellis uses, but serves the same purpose.
If you’re not using Trellis, or prefer Mailtrap for whatever reason, you can now use it with basically zero effort.
Here’s the gist of it: if your WP_ENV
is not production
, your emails will be sent through Mailtrap and “caught” there, waiting for you to see in the inbox of your choice.
All you have to do is setup your Mailtrap inbox credentials using a few environment variables, and you’re done.
There is a bit of a caveat with sites that use plugins for transactional email services, but that’s covered in the readme.
Check it out, and let me know if you find it useful. Any other (civilized) feedback is welcome also