"New User Registration" email was sent
marktmcgrath opened this issue · 2 comments
marktmcgrath commented
We received a report that a "New User Registration" email was received but the expectation is that Safety Net would block this email.
Could this be related to #69?
nate-allen commented
@NickGreen looks like in WordPress 5.7 there was a new hook added called pre_wp_mail
that can be used to short circuit email being sent. We should probably be using that.
That doesn't really explain why the email was sent though. The "to" was definitely unset. But maybe there's some other logic in WordPress that will send the email to the admin if there is no "to" specified? I'm still trying to figure that out.