get_log(); $nonce = wp_create_nonce( 'admbud_smtp_nonce' ); $enabled = admbud_get_option( 'admbud_smtp_enabled', '0' ) === '1'; $mailer = admbud_get_option( 'admbud_smtp_mailer', 'smtp' ); $host = admbud_get_option( 'admbud_smtp_host', '' ); $port = admbud_get_option( 'admbud_smtp_port', 587 ); $username = admbud_get_option( 'admbud_smtp_username', '' ); $encryption = admbud_get_option( 'admbud_smtp_encryption', 'tls' ); $auth = admbud_get_option( 'admbud_smtp_auth', '1' ) === '1'; $from_name = admbud_get_option( 'admbud_smtp_from_name', get_bloginfo( 'name' ) ); $from_email = admbud_get_option( 'admbud_smtp_from_email', get_option( 'admin_email' ) ); $fallback = admbud_get_option( 'admbud_smtp_fallback', '0' ) === '1'; $preset = admbud_get_option( 'admbud_smtp_preset', 'custom' ); $pass_set = ! empty( get_option( \Admbud\SMTP::PASS_OPTION, '' ) ); $subtabs = [ 'settings' => __( 'Settings', 'admin-buddy' ), 'log' => __( 'Email Log', 'admin-buddy' ), ]; $active_sub = \Admbud\Settings::get_active_subtab( 'smtp', 'settings' ); $active_sub = array_key_exists( $active_sub, $subtabs ) ? $active_sub : 'settings'; ?>
$label ) : ?>
'; $this->card_open_svg( $icon_mail, __( 'Mail Settings', 'admin-buddy' ), __( 'Control how WordPress sends email.', 'admin-buddy' ) ); ?> card_close(); ?> '; $this->card_open_svg( $icon_user, __( 'From Address', 'admin-buddy' ), __( 'The name and email that appear in the From field of every outgoing email.', 'admin-buddy' ) ); ?> card_close(); ?> '; ?>
> card_open_svg( $icon_server, __( 'SMTP Server', 'admin-buddy' ), __( 'Connection details for your outgoing mail server.', 'admin-buddy' ) ); ?> > > card_close(); ?>
'; $this->card_open_svg( $icon_send, __( 'Send Test Email', 'admin-buddy' ), __( 'Verify your configuration by sending a test message right now.', 'admin-buddy' ) ); ?>
card_close(); ?>
'; /* translators: %d: email log limit number */ $this->card_open_svg( $icon_log, __( 'Email Log', 'admin-buddy' ), sprintf( __( 'Last %d emails sent or attempted by WordPress.', 'admin-buddy' ), \Admbud\SMTP::LOG_LIMIT ) ); ?>

$entry ) : $is_fail = ( $entry['status'] ?? '' ) === 'failed'; ?>
card_close(); ?>