I guess it is because of the “Better Notifications” plugin. A quick look at the source code shows that it is modifying the headers send to wp_mail function.
Is the to field getting logged if you disable the plugin?
Thread Starter
KTS915
(@kts915)
Thanks for responding, Sudar.
The “Better Notifications” plugin is not stopping the “To” field from being populated when emails are sent from other plugins. So there’s no need to disable it for them.
It’s just that it’s not being populated when an email is sent from that plugin itself.
Perhaps it is getting in the way of registration emails having to “To” filed logged, though? I’ll try disabling it and see if that makes a difference.
The “Better Notifications” plugin is hooking to the same filter that my plugin is using and is also modifying the “to” field to a format that is not supported by my plugin.
Try disabling it and let me know if it solves the issues. If it solves it then we can confirm that the plugin is the issue.
Thread Starter
KTS915
(@kts915)
Yes, you’re right. If I disable that plugin, then the “To” field is populated when a new user registers.
Thanks very much for this!
I know the developers of the “Better Notifications” plugin have said for some time that they are working on an entirely new version of their plugin, and obviously this is one of the reasons why. Unfortunately, I don’t know of an alternative that can automatically (i.e. without a user having to subscribe) send emails to custom user roles when a comment is made. Do you?
Even I don’t know of any alternative. But let me go over “Better Notifications” plugin’s sourcecode a bit more and see if I can suggest a fix for them.
Hi,
Jack here from Better Notifications for WordPress.
Thanks for pointing this out – if there’s anything I can do to help resolve this, please let me know.
It’s worth creating a support ticket on our WordPress forum so that it’s logged there too.