red banner on login page "There was a problem sending your email with the OTP. Please try again or contact an admin."
all sites running wp7 & Loginizer 2.0.8 show this error.
deleting the Loginizer-security (aka pro) plugin is our only option to regain access to the sites. no issues with any other WP version. 6.x all send emails fine. presumably its a change to wp_mail
PHP Code $sent = wp_mail($user->data->user_email, $subject, $message, $headers);
if(empty($sent)){
// For plugins that login using AJAX
if(!empty(get_transient('loginizer_2fa_'. $user->ID))){
return array('message' => esc_html__('There was a problem sending your email with the OTP. Please try again or contact an admin.', 'loginizer'));
}
return new WP_Error('email_not_sent', 'There was a problem sending your email with the OTP. Please try again or contact an admin.', 'loginizer_2fa_email');
}else{
$save = 1;
}
|