'; $output .= __( 'We have just sent an e-mail using wp_mail() and it seems to work. Please check your inbox and spam folder to see if you received it.', 'health-check' ); $output .= '

'; } else { $output .= '

'; $output .= esc_html__( 'It seems there was a problem sending the e-mail.', 'health-check' ); $output .= '

'; } $response = array( 'message' => $output, ); wp_send_json_success( $response ); wp_die(); } }