Please or Register to create posts and topics.

Notifications not sent for most users.

hi everyone.

I am trying to figure out what could be wrong with my setup.
I have a Ultimate Member + Asgaros site.

Upon registration I automatically subscribe the  users to the 2 forums we have.

/**
*
* Auto subscribe user to the Announcements forum
*
*
*
*/
add_action(‘um_after_user_is_approved’, ‘mrf_change_subscription_settings’, 10);
function mrf_change_subscription_settings($user_id) {
    $forum_ids = [2, 3];
    foreach ($forum_ids as $forum_id) {
        add_user_meta($user_id, ‘asgarosforum_subscription_forum’, $forum_id);
    }
}

I have checked the wp_usermeta and I see that the data is correctly set.

2480 75 asgarosforum_subscription_forum 2
20832 76 asgarosforum_subscription_forum 3

 

however the notification was sent to only 1 of my users!

I check the Post SMTP email log and only find 3 notifications: 1 to each admin and 1 to a random user.

Any pointers on what could be wrong is much appreciated.
thanks in advance