jdavidbakr / mail-tracker

Package for Laravel to inject tracking code into outgoing emails.
MIT License
562 stars 129 forks source link

Add Ability to Skip Tracking based on an event listener #242

Closed bretto36 closed 5 months ago

bretto36 commented 5 months ago

228 - Thought i'd help with this issue. Now someone could add an Event Listener that can check anything they want on the request to determine whether it's a spam checker or not.

See the test for an example. The Listener just sets the $skip = true on the original event and it all works

jdavidbakr commented 5 months ago

I think that looks great - would you mind also updating the ReadMe to document how to use this?