Thread Starter
kiiiin
(@kiiiin)
I have forget to mention that the approving function of the plugin can function normally which means only the email can not be receive
Hi there,
I’m sorry you’re having trouble.
This sounds like something is wrong with your (host’s) email setup, if it suddenly stopped working. The plugin uses WordPress’ built-in wp_mail()
infrastructure, so I assume your site doesn’t send out any notification emails anymore?
Konstantin
Thread Starter
kiiiin
(@kiiiin)
In fact, I have tested my site that the other email function which using wp_mail() is work(e.g woocommerce). Also I wanted updated my situation a bit. Actually the email can be received sometimes! Although most of the time it doesn’t work at all, sometimes it does!
Thread Starter
kiiiin
(@kiiiin)
I have change the website email delivery service to SMTP by using WP email SMTP plugin. All the email sending function is work expect WP approve user. I find out the email will only be sent when I approve the user for first time and no email will be received by the user if I unapprove or approve it again. Thankyou so much for answer my question
Ah, thanks for that follow up.
I find out the email will only be sent when I approve the user for first time and no email will be received by the user if I unapprove or approve it again.
Yes, this was a feature request from the early beginnings of this plugin to prevent duplicated emails when accidentally un-approving a user.
If this is something you want to allow, you could use this filter to do so:
add_filter( 'get_user_metadata' function( $value, $object_id, $meta_key ) {
if ( 'wp-approve-user-mail-sent' === $meta_key ) {
$value = false;
}
return $value;
}, 10, 3 );
Thread Starter
kiiiin
(@kiiiin)
Thankyou so much for giving me advise! This filter help me to send the email to the user. But the unapprove email is still can not be sent. Is there any filter or code for me to solve this problem?
There is an option in the settings page that would need to be enabled.
Thread Starter
kiiiin
(@kiiiin)
Although I tick the send unapprove email option, the client still can not receive the unapprove email. Thankyou so much
Thread Starter
kiiiin
(@kiiiin)
Is it possible for me to have any update?