'; $message .= '

' . __('Hi', 'easy-basic-authentication') . '

'; $message .= '

' . __('New access attempt detected:', 'easy-basic-authentication') . '

'; $message .= '

'; $message .= '

' . __('All text of the call:', 'easy-basic-authentication') . '

'; $message .= '

' . wp_json_encode($access) . '

'; $message .= '

' . __('You are receiving this email because you have installed Easy Basic Authentication on your website and enabled the email alert option.', 'easy-basic-authentication') . '

'; $message .= ''; $site_email = get_option('admin_email'); $headers = array( 'Content-Type: text/html; charset=UTF-8', 'From: ' . $site_email, ); wp_mail($to, $subject, $message, $headers); } }