403 ) ); } $to = get_option( 'admin_email' ); $ok = is_email( $to ) && wp_mail( $to, '[QW Optimize] Test email', 'If you received this, wp_mail() is working on ' . home_url( '/' ) ); wp_safe_redirect( admin_url( 'admin.php?page=qw-speed-cache&email_test=' . ( $ok ? '1' : '0' ) ) ); exit; } }