isset( $_POST['activate'] ) ? sanitize_text_field( wp_unslash( $_POST['activate'] ) ) : '', 'host' => sanitize_text_field( wp_unslash( $_POST['host'] ) ), // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotValidated 'port' => sanitize_text_field( wp_unslash( $_POST['port'] ) ), // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotValidated 'authenticate' => isset( $_POST['authenticate'] ) ? sanitize_text_field( wp_unslash( $_POST['authenticate'] ) ) : '', 'encryption' => sanitize_text_field( wp_unslash( $_POST['encryption'] ) ), // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotValidated 'skip_verify' => isset( $_POST['skip_verify'] ) ? sanitize_text_field( wp_unslash( $_POST['skip_verify'] ) ) : '', 'username' => sanitize_text_field( wp_unslash( $_POST['username'] ) ), // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotValidated 'password' => sanitize_text_field( wp_unslash( $_POST['password'] ) ), // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotValidated 'debug' => sanitize_text_field( wp_unslash( $_POST['debug'] ) ), // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotValidated ); WPDA_Mail::update_option( $mail ); } elseif ( 'setdefaults' === $action ) { WPDA_Mail::delete_option(); } $msg = new WPDA_Message_Box( array( 'message_text' => __( 'Settings saved', 'wp-data-access' ), ) ); $msg->box(); } $option = WPDA_Mail::get_option(); $activate = $option['activate'] ?? ''; $host = $option['host'] ?? ''; $port = $option['port'] ?? ''; $authenticate = $option['authenticate'] ?? ''; $encryption = $option['encryption'] ?? ''; $skip_verify = $option['skip_verify'] ?? ''; $username = $option['username'] ?? ''; $password = $option['password'] ?? ''; $debug = $option['debug'] ?? ''; ?>
SMTP Mail Server Settings

SMTP mail server settings are used to send scheduled SQL Query Builder results.

Test your mail settings using the SEND TEST MAIL button before activating.
Host
Port
Username
Password
Encryption

Use for testing on development servers. Disable in production!

Test
Debug mode
Debug info