$result = email_group_reminder($reporter2, $body);
            //$handler2 = $handler ;
            $reporter2 = $reporter;
            //$list= string_get_bug_view_url_with_fqdn( $id, $handler2 );
            $list = string_get_bug_view_url_with_fqdn($id, $reporter2);
        }
        $list .= " <br>\n";
    }
    // handle last grouped email
    if ($results) {
        $body = $t_rem_body1 . " \n\n";
        $body .= $list . " \n\n";
        $body .= $t_rem_body2;
        //why the handler? Feedback reminder email should go to the Reporter!
        //$result = email_group_reminder( $handler2, $body);
        $result = email_group_reminder($reporter2, $body);
    } else {
        echo 'Query-Manager had no results ' . $query;
        echo '<br>';
    }
}
if (php_sapi_name() !== 'cli') {
    echo config_get('plugin_Reminder_reminder_finished');
}
# Send Grouped reminder
function email_group_reminder($p_user_id, $issues)
{
    $t_username = user_get_field($p_user_id, 'username');
    $t_email = user_get_email($p_user_id);
    $t_message = $issues;
    $t_subject = config_get('plugin_Reminder_reminder_subject');
                $body = $t_rem_body1 . " \n\n";
                $body .= $list . " \n\n";
                $body .= $t_rem_body2;
                $result = email_group_reminder($man2, $body);
                $man2 = $manager;
                $list = string_get_bug_view_url_with_fqdn($id, $man2);
                $list .= " \n\n";
            }
        }
        // handle last one
        if ($resnum > 0) {
            // now send the grouped email
            $body = $t_rem_body1 . " \n\n";
            $body .= $list . " \n\n";
            $body .= $t_rem_body2;
            $result = email_group_reminder($man2, $body);
        }
        //
    }
}
if (php_sapi_name() !== 'cli') {
    echo config_get('plugin_Reminder_reminder_finished');
}
# Send Grouped reminder
function email_group_reminder($p_user_id, $issues)
{
    $t_username = user_get_field($p_user_id, 'username');
    $t_email = user_get_email($p_user_id);
    $t_subject = config_get('plugin_Reminder_reminder_group_subject');
    $t_message = $issues;
    if (!is_blank($t_email)) {