-
Notifications
You must be signed in to change notification settings - Fork 0
feat: capture and log non-whitelisted email recipients in staging environment #48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
Coverage report for commit: 9759b65 Summary - Lines: 2.49% | Methods: 3.33%🤖 comment via lucassabreu/comment-coverage-clover |
b4907b0 to
4c9f2bb
Compare
|
Wat is hier de use case van en is dit relevant voor alle projecten? |
724d75c to
5e87d6f
Compare
dtakken
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Vraag: Wil je errors enkel loggen (wat je niet meteen merkt) of een exception gooien (merk je wel meteen)?
e892690 to
e917d12
Compare
mvdhoek1
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Gelieve de boel eerst opschonen, zoals de eerdere review comments ook al aangeven.
1151093 to
5fd63ea
Compare
Ik denk dat loggen voldoende is, dit is niet iets wat in Sentry hoeft te komen denk ik. |
2346917 to
abf6ec8
Compare
abf6ec8 to
ad8b13f
Compare
| /** | ||
| * Filter wp_mail to restrict email sending in staging environment. | ||
| */ | ||
| add_filter('wp_mail', [MailHandler::class, 'filter']); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Worden de IDE's ook blij van: add_filter('wp_mail', MailHandler::filter(...));
This PR makes sure that no emails from any staging environment are actually send out via WordPress, unless they are on the whitelist. This prevents accidental emails being send when using real data.