Plugin Directory

Changeset 3749022


Ignore:
Timestamp:
10/15/2026 05:25:39 PM (7 weeks ago)
Author:
dadsfam
Message:

Release 2.1.7

Location:
dadsfam-email-smtp
Files:
26 edited
1 copied

Legend:

Unmodified
Added
Removed
  • dadsfam-email-smtp/tags/2.1.7/assets/css/admin.css

    r3733154 r3749022  
    258258.dfsmtp-pill--blocked{background:#fef3c7;color:#92400e;}
    259259.dfsmtp-pill--suppressed{background:#e0e7ff;color:#3730a3;}
     260.dfsmtp-pill--deferred{background:#e0f2fe;color:#075985;}
    260261.dfsmtp-pill--major{background:var(--df-grad);color:#fff;}
    261262.dfsmtp-pill--minor{background:#dbeafe;color:#1e40af;}
  • dadsfam-email-smtp/tags/2.1.7/assets/js/admin.js

    r3733154 r3749022  
    6363        };
    6464
     65        function showProviderGuide( key ) {
     66                if ( guides[ key ] ) {
     67                        $( '#dfsmtp-provider-guide-text' ).html( guides[ key ] );
     68                        $( '#dfsmtp-provider-guide' ).show();
     69                } else {
     70                        $( '#dfsmtp-provider-guide' ).hide();
     71                }
     72        }
     73
     74        // Picking a provider fills in its host, port and encryption. Opening the
     75        // page must not: it used to, so the saved port and encryption were
     76        // replaced by the provider's defaults on every visit, and saving any other
     77        // setting quietly changed the connection.
    6578        $( '#dfsmtp-provider' ).on( 'change', function () {
    6679                var key = $( this ).val();
    … …  
    7588                }
    7689
    77                 if ( guides[ key ] ) {
    78                         $( '#dfsmtp-provider-guide-text' ).html( guides[ key ] );
    79                         $( '#dfsmtp-provider-guide' ).show();
    80                 } else {
    81                         $( '#dfsmtp-provider-guide' ).hide();
    82                 }
    83         } ).trigger( 'change' );
     90                showProviderGuide( key );
     91        } );
     92        showProviderGuide( $( '#dfsmtp-provider' ).val() );
    8493
    8594        /* ── Auth toggle & password visibility ────────────────────────────────── */
  • dadsfam-email-smtp/tags/2.1.7/dadsfam-email-smtp.php

    r3733154 r3749022  
    44 * Plugin URI:        https://plugins.dadsfam.co.za/
    55 * Description:       Reliable WordPress email delivery over SMTP. 13+ pre-configured providers, encrypted credentials, full email logging with resend, live SMTP diagnostics, SPF/DKIM/DMARC deliverability checks and WooCommerce email routing.
    6  * Version:           2.1.6
     6 * Version:           2.1.7
    77 * Requires at least: 6.0
    88 * Requires PHP:      8.0
    … …  
    4949
    5050// ── Constants ────────────────────────────────────────────────────────────────
    51 define( 'DFSMTP_VERSION', '2.1.6' );
     51define( 'DFSMTP_VERSION', '2.1.7' );
    5252define( 'DFSMTP_FILE', __FILE__ );
    5353define( 'DFSMTP_DIR', plugin_dir_path( __FILE__ ) );
  • dadsfam-email-smtp/tags/2.1.7/includes/admin/pages/page-changelog.php

    r3733154 r3749022  
    1111
    1212$dfsmtp_changelog = array(
     13        array(
     14                'version' => '2.1.7',
     15                'date'    => '2026-10-15',
     16                'type'    => 'patch',
     17                'title'   => __( 'Replies go to the right person', 'dadsfam-email-smtp' ),
     18                'changes' => array(
     19                        __( 'Fixed: the Reply-To setting was added to every email, even one that already said who to reply to. Mail programs then replied to both addresses, so when someone answered a contact-form enquiry, the site owner was copied in on a private conversation. The setting is now a default: it is only used when an email has no Reply-To of its own. Contact forms, enquiry forms and WooCommerce emails keep theirs.', 'dadsfam-email-smtp' ),
     20                        __( 'Fixed: the email log showed the Reply-To setting rather than the Reply-To the email actually went out with. It now records the real one.', 'dadsfam-email-smtp' ),
     21                        __( 'Fixed: resending an email from the log, and PRO\'s automatic retry, keep the email\'s original Reply-To.', 'dadsfam-email-smtp' ),
     22                        __( 'Fixed: after one email failed, the next email sent at the same moment went out over the same broken connection and failed too. That included the "delivery failure" alert, PRO\'s backup server (the email went back to the main server instead) and every PRO retry after the first. Each email now starts a fresh connection after a failure.', 'dadsfam-email-smtp' ),
     23                        __( 'Fixed: emails held back on purpose (by staging mode, the suppression list or PRO\'s hourly limit) were logged as "failed", so PRO\'s automatic retry could send them anyway. An email held back on a staging site could go out once blocking was switched off, and a deferred email could go out twice. They now have their own status (Blocked, Suppressed or Deferred), are never retried and no longer count as failures. Existing log entries are corrected once when you update.', 'dadsfam-email-smtp' ),
     24                        __( 'Fixed: opening the Settings screen put the provider\'s default port and encryption into the form, so saving any other setting (the From name, say) could quietly change how the site connects to its mail server. The form now shows what is saved, and only fills in a provider\'s defaults when you choose a provider.', 'dadsfam-email-smtp' ),
     25                        __( 'Changed: the Reply-To field is now called "Default Reply-To email" and says it is only used when an email has none of its own.', 'dadsfam-email-smtp' ),
     26                ),
     27        ),
    1328        array(
    1429                'version' => '2.1.6',
  • dadsfam-email-smtp/tags/2.1.7/includes/admin/pages/page-logs.php

    r3733154 r3749022  
    5959                                <option value="blocked" <?php selected( $dfsmtp_status, 'blocked' ); ?>><?php esc_html_e( 'Blocked', 'dadsfam-email-smtp' ); ?></option>
    6060                                <option value="suppressed" <?php selected( $dfsmtp_status, 'suppressed' ); ?>><?php esc_html_e( 'Suppressed', 'dadsfam-email-smtp' ); ?></option>
     61                                <option value="deferred" <?php selected( $dfsmtp_status, 'deferred' ); ?>><?php esc_html_e( 'Deferred', 'dadsfam-email-smtp' ); ?></option>
    6162                        </select>
    6263                        <button type="submit" class="dfsmtp-btn dfsmtp-btn-secondary dfsmtp-btn-sm"><?php esc_html_e( 'Search', 'dadsfam-email-smtp' ); ?></button>
  • dadsfam-email-smtp/tags/2.1.7/includes/admin/pages/page-settings.php

    r3642053 r3749022  
    143143                </div>
    144144                <div class="dfsmtp-field">
    145                         <label for="dfsmtp-reply-to"><?php esc_html_e( 'Reply-To email', 'dadsfam-email-smtp' ); ?></label>
    146                         <input type="email" id="dfsmtp-reply-to" name="reply_to" value="<?php echo esc_attr( $dfsmtp_s['reply_to'] ?? '' ); ?>" placeholder="<?php esc_attr_e( 'Optional — replies go here instead', 'dadsfam-email-smtp' ); ?>">
     145                        <label for="dfsmtp-reply-to"><?php esc_html_e( 'Default Reply-To email', 'dadsfam-email-smtp' ); ?></label>
     146                        <input type="email" id="dfsmtp-reply-to" name="reply_to" value="<?php echo esc_attr( $dfsmtp_s['reply_to'] ?? '' ); ?>" placeholder="<?php esc_attr_e( 'Optional', 'dadsfam-email-smtp' ); ?>">
     147                        <p class="dfsmtp-field-hint"><?php esc_html_e( 'Replies go here unless the email sets its own. Contact forms and shop emails that name who to reply to keep it, so replies reach the right person.', 'dadsfam-email-smtp' ); ?></p>
    147148                </div>
    148149                <div class="dfsmtp-field">
  • dadsfam-email-smtp/tags/2.1.7/includes/admin/pages/page-test.php

    r3642053 r3749022  
    6666                                __( 'Encryption', 'dadsfam-email-smtp' )  => strtoupper( $dfsmtp_s['encryption'] ?? 'tls' ),
    6767                                __( 'From', 'dadsfam-email-smtp' )        => trim( ( $dfsmtp_s['from_name'] ?? '' ) . ' <' . ( $dfsmtp_from ? $dfsmtp_from : get_option( 'admin_email' ) ) . '>' ),
    68                                 __( 'Reply-To', 'dadsfam-email-smtp' )    => ! empty( $dfsmtp_s['reply_to'] ) ? $dfsmtp_s['reply_to'] : __( 'Not set', 'dadsfam-email-smtp' ),
     68                                __( 'Default Reply-To', 'dadsfam-email-smtp' ) => ! empty( $dfsmtp_s['reply_to'] ) ? $dfsmtp_s['reply_to'] : __( 'Not set', 'dadsfam-email-smtp' ),
    6969                        );
    7070                        foreach ( $dfsmtp_rows as $dfsmtp_k => $dfsmtp_v ) :
  • dadsfam-email-smtp/tags/2.1.7/includes/class-dfsmtp-abilities.php

    r3681109 r3749022  
    248248                                                'status'   => array(
    249249                                                        'type' => 'string',
    250                                                         'enum' => array( 'sent', 'failed' ),
     250                                                        'enum' => array( 'sent', 'failed', 'blocked', 'suppressed', 'deferred' ),
    251251                                                ),
    252252                                        ),
  • dadsfam-email-smtp/tags/2.1.7/includes/class-dfsmtp-logger.php

    r3714354 r3749022  
    2828class DFSMTP_Logger {
    2929
    30         const TABLE_VERSION = '4';
     30        const TABLE_VERSION = '5';
    3131        const OPT_TABLE_VER = 'dfsmtp_table_version';
    3232
    … …  
    3737         */
    3838        const RETRY_NEVER = 255;
     39
     40        /**
     41         * Emails that were held back on purpose, never sent and never failed:
     42         * the label they are logged with, and the status they get.
     43         */
     44        const HELD_BACK = array(
     45                'blocked'      => 'blocked',
     46                'suppressed'   => 'suppressed',
     47                'rate-limited' => 'deferred',
     48        );
    3949
    4050        private static ?DFSMTP_Logger $instance = null;
    … …  
    5464                        self::create_table();
    5565                        $this->maybe_upgrade_columns();
     66                        $this->upgrade_statuses();
    5667                        update_option( self::OPT_TABLE_VER, self::TABLE_VERSION );
    5768                }
    … …  
    119130        }
    120131
     132        /**
     133         * Give emails that were held back their own status (2.1.7).
     134         *
     135         * Blocked, suppressed and rate-limited emails used to be logged as
     136         * "failed". PRO's automatic retry then picked them up and sent them:
     137         * an email held back by staging mode went out after all, and a deferred
     138         * email went out twice. Their own status keeps them out of the retry
     139         * queue and out of the failure figures. Safe to run repeatedly.
     140         */
     141        private function upgrade_statuses(): void {
     142                global $wpdb;
     143                foreach ( self::HELD_BACK as $provider => $status ) {
     144                        $wpdb->query( $wpdb->prepare( "UPDATE {$this->table} SET status = %s WHERE status = 'failed' AND provider = %s", $status, $provider ) );
     145                }
     146        }
     147
    121148        private function table_exists(): bool {
    122149                global $wpdb;
    … …  
    149176                }
    150177
     178                $status = $success ? 'sent' : 'failed';
     179                if ( ! $success && isset( self::HELD_BACK[ $provider ] ) ) {
     180                        $status = self::HELD_BACK[ $provider ];
     181                }
     182
    151183                global $wpdb;
    152184                $wpdb->insert(
    153185                        $this->table,
    154186                        array(
    155                                 'status'      => $success ? 'sent' : 'failed',
     187                                'status'      => $status,
    156188                                'subject'     => mb_substr( $subject, 0, 500 ),
    157189                                'to_email'    => mb_substr( $to, 0, 500 ),
    … …  
    318350                                        "SELECT * FROM {$this->table}
    319351                                         WHERE status='failed' AND retry_count < %d AND body != '' AND to_email != ''
     352                                           AND provider NOT IN ('blocked','suppressed','rate-limited')
    320353                                           AND sent_at >= DATE_SUB( NOW(), INTERVAL %d MINUTE )
    321354                                         ORDER BY id ASC LIMIT %d",
    … …  
    332365                                "SELECT * FROM {$this->table}
    333366                                 WHERE status='failed' AND retry_count < %d AND body != '' AND to_email != ''
     367                                   AND provider NOT IN ('blocked','suppressed','rate-limited')
    334368                                 ORDER BY id ASC LIMIT %d",
    335369                                $max_retries,
  • dadsfam-email-smtp/tags/2.1.7/includes/class-dfsmtp-mailer.php

    r3714354 r3749022  
    275275                        $this->apply_common_headers( $m, $s );
    276276                        do_action( 'dfsmtp_after_configure_mailer', $m, $s );
     277                        $this->note_reply_to( $m );
    277278                        return;
    278279                }
    279280
    280281                if ( empty( $s['host'] ) ) {
     282                        $this->note_reply_to( $m );
    281283                        return; // Not configured yet — leave WordPress to its default.
    282284                }
    … …  
    290292                 */
    291293                do_action( 'dfsmtp_after_configure_mailer', $m, $s );
     294
     295                $this->note_reply_to( $m );
    292296        }
    293297
    … …  
    295299         * Reply-To and Return-Path apply regardless of which SMTP account was
    296300         * selected, so they live outside apply_settings_to_mailer().
     301         *
     302         * The Reply-To setting is a default, not an override. By the time this
     303         * runs, WordPress has already put the email's own Reply-To on it, and
     304         * PHPMailer's addReplyTo() adds to that list rather than replacing it.
     305         * Adding the setting as well sent every reply to both addresses, so a
     306         * contact form's "reply to the visitor" copied the site owner into a
     307         * private conversation. The setting now only fills in for an email that
     308         * has no Reply-To of its own.
     309         *
     310         * @param mixed $m PHPMailer instance.
     311         * @param array $s Saved settings.
    297312         */
    298313        private function apply_common_headers( $m, array $s ): void {
    299                 if ( ! empty( $s['reply_to'] ) ) {
    300                         try {
    301                                 $m->addReplyTo( $s['reply_to'] );
    302                         } catch ( \Exception $e ) {
    303                                 unset( $e ); // Invalid Reply-To: skip the header, still send the email.
     314                if ( ! self::has_reply_to( $m ) ) {
     315                        // A resend keeps the Reply-To the email first went out with.
     316                        $addresses = self::split_addresses( $this->resend_reply_to() );
     317                        if ( empty( $addresses ) && ! empty( $s['reply_to'] ) ) {
     318                                $addresses = array( array( (string) $s['reply_to'], '' ) );
     319                        }
     320                        foreach ( $addresses as $address ) {
     321                                try {
     322                                        $m->addReplyTo( $address[0], $address[1] );
     323                                } catch ( \Exception $e ) {
     324                                        unset( $e ); // Invalid Reply-To: skip the header, still send the email.
     325                                }
    304326                        }
    305327                }
    … …  
    307329                        $m->Sender = $s['return_path'];
    308330                }
     331        }
     332
     333        /**
     334         * Whether the email already carries a Reply-To of its own.
     335         *
     336         * PHPMailer holds an address with an international domain name (such as
     337         * a@münchen.de) in a queue until the moment it sends, so it is not in
     338         * getReplyToAddresses() yet. Both are checked, or such an address would
     339         * still get the setting added on top of it.
     340         *
     341         * @param mixed $m PHPMailer instance.
     342         * @return bool
     343         */
     344        private static function has_reply_to( $m ): bool {
     345                return array() !== self::reply_to_addresses( $m );
     346        }
     347
     348        /**
     349         * Every Reply-To address on the email, as [ address, name ] pairs,
     350         * including any still waiting in PHPMailer's international-domain queue.
     351         *
     352         * @param mixed $m PHPMailer instance.
     353         * @return array<int,array{0:string,1:string}>
     354         */
     355        private static function reply_to_addresses( $m ): array {
     356                $out = array();
     357                if ( is_object( $m ) && method_exists( $m, 'getReplyToAddresses' ) ) {
     358                        foreach ( (array) $m->getReplyToAddresses() as $pair ) {
     359                                if ( is_array( $pair ) && ! empty( $pair[0] ) ) {
     360                                        $out[] = array( (string) $pair[0], (string) ( $pair[1] ?? '' ) );
     361                                }
     362                        }
     363                }
     364                if ( is_object( $m ) ) {
     365                        // The queue is protected, so it is read from the class's own scope.
     366                        $queued = \Closure::bind(
     367                                static function ( $mailer ): array {
     368                                        return ( property_exists( $mailer, 'ReplyToQueue' ) && is_array( $mailer->ReplyToQueue ) ) ? $mailer->ReplyToQueue : array();
     369                                },
     370                                null,
     371                                get_class( $m )
     372                        );
     373                        if ( $queued ) {
     374                                // Queue entries are [ kind, address, name ].
     375                                foreach ( (array) $queued( $m ) as $params ) {
     376                                        if ( is_array( $params ) && ! empty( $params[1] ) ) {
     377                                                $out[] = array( (string) $params[1], (string) ( $params[2] ?? '' ) );
     378                                        }
     379                                }
     380                        }
     381                }
     382                return $out;
     383        }
     384
     385        /**
     386         * Remember the Reply-To the email is actually going out with, so the log
     387         * records the truth rather than the setting.
     388         *
     389         * @param mixed $m PHPMailer instance.
     390         */
     391        private function note_reply_to( $m ): void {
     392                $this->pending_mail['_reply_to'] = self::format_addresses( self::reply_to_addresses( $m ) );
     393        }
     394
     395        /**
     396         * The Reply-To recorded for the log row being resent, if a resend is in
     397         * flight.
     398         *
     399         * @return string
     400         */
     401        private function resend_reply_to(): string {
     402                if ( $this->retry_of <= 0 ) {
     403                        return '';
     404                }
     405                $row = DFSMTP_Logger::instance()->get_log( $this->retry_of );
     406                return ( $row && ! empty( $row->reply_to ) ) ? (string) $row->reply_to : '';
     407        }
     408
     409        /**
     410         * The Reply-To to write to the log for the email being processed.
     411         *
     412         * Normally this is what the mailer actually used. When the send stopped
     413         * before the mailer was set up (blocked, suppressed, or refused by
     414         * WordPress itself), it is the Reply-To the email asked for, or failing
     415         * that the default that would have been applied.
     416         *
     417         * @param array $mail wp_mail() arguments as captured in before_send().
     418         * @param array $s    Saved settings.
     419         * @return string
     420         */
     421        private static function logged_reply_to( array $mail, array $s ): string {
     422                if ( isset( $mail['_reply_to'] ) ) {
     423                        return (string) $mail['_reply_to'];
     424                }
     425                $own = self::reply_to_from_headers( $mail['headers'] ?? '' );
     426                return '' !== $own ? $own : (string) ( $s['reply_to'] ?? '' );
     427        }
     428
     429        /**
     430         * Read the Reply-To out of wp_mail() headers, as a string or an array.
     431         *
     432         * @param mixed $headers Headers as passed to wp_mail().
     433         * @return string Comma-separated addresses, or '' when there is none.
     434         */
     435        public static function reply_to_from_headers( $headers ): string {
     436                if ( empty( $headers ) ) {
     437                        return '';
     438                }
     439                $lines = is_array( $headers ) ? $headers : explode( "\n", str_replace( "\r\n", "\n", (string) $headers ) );
     440                $found = array();
     441                foreach ( $lines as $line ) {
     442                        if ( ! is_string( $line ) || false === strpos( $line, ':' ) ) {
     443                                continue;
     444                        }
     445                        list( $name, $content ) = explode( ':', $line, 2 );
     446                        if ( 'reply-to' === strtolower( trim( $name ) ) && '' !== trim( $content ) ) {
     447                                $found = array_merge( $found, self::split_addresses( $content ) );
     448                        }
     449                }
     450                return self::format_addresses( $found );
     451        }
     452
     453        /**
     454         * Split an address list ("Ann <a@x.com>, b@y.com") into [ address, name ]
     455         * pairs. Anything that is not an email address is dropped.
     456         *
     457         * @param string $addresses Address list.
     458         * @return array<int,array{0:string,1:string}>
     459         */
     460        public static function split_addresses( string $addresses ): array {
     461                $out = array();
     462                foreach ( explode( ',', $addresses ) as $part ) {
     463                        $part = trim( $part );
     464                        if ( '' === $part ) {
     465                                continue;
     466                        }
     467                        $name    = '';
     468                        $address = $part;
     469                        if ( preg_match( '/^(.*)<([^>]+)>\s*$/', $part, $m ) ) {
     470                                $name    = trim( trim( $m[1] ), " \t\"'" );
     471                                $address = trim( $m[2] );
     472                        }
     473                        if ( false !== strpos( $address, '@' ) && ! preg_match( '/[\s<>"]/', $address ) ) {
     474                                $out[] = array( $address, $name );
     475                        }
     476                }
     477                return $out;
     478        }
     479
     480        /**
     481         * Write [ address, name ] pairs back as one readable list. Characters that
     482         * would break the list apart again are taken out of the names.
     483         *
     484         * @param array $pairs Address pairs.
     485         * @return string
     486         */
     487        private static function format_addresses( array $pairs ): string {
     488                $seen = array();
     489                $out  = array();
     490                foreach ( $pairs as $pair ) {
     491                        $address = trim( (string) ( $pair[0] ?? '' ) );
     492                        $key     = strtolower( $address );
     493                        if ( '' === $address || isset( $seen[ $key ] ) ) {
     494                                continue;
     495                        }
     496                        $seen[ $key ] = true;
     497                        $name         = trim( (string) preg_replace( '/\s+/', ' ', str_replace( array( ',', '"', '<', '>', ';' ), ' ', (string) ( $pair[1] ?? '' ) ) ) );
     498                        $out[]        = '' !== $name ? $name . ' <' . $address . '>' : $address;
     499                }
     500                return implode( ', ', $out );
    309501        }
    310502
    … …  
    596788                                                        '',
    597789                                                        $atts['message'] ?? '',
    598                                                         $s['reply_to'] ?? ''
     790                                                        self::logged_reply_to( (array) $atts, $s )
    599791                                                );
    600792                                                return true; // Silently drop.
    … …  
    617809                                '',
    618810                                $atts['message'] ?? '',
    619                                 $s['reply_to'] ?? ''
     811                                self::logged_reply_to( (array) $atts, $s )
    620812                        );
    621813                        return true; // Report success so calling plugins do not error.
    … …  
    693885                        '',
    694886                        $data['message'] ?? '',
    695                         $s['reply_to'] ?? ''
     887                        self::logged_reply_to( $this->pending_mail, $s )
    696888                );
    697889
    … …  
    707899
    708900        public function on_failed( $error ): void {
     901                // Start the next email on a fresh connection. See close_connection().
     902                self::close_connection();
     903
    709904                $logger = DFSMTP_Logger::instance();
    710905                $s      = $this->get_settings();
    … …  
    732927                        '',
    733928                        $mail['message'] ?? '',
    734                         $s['reply_to'] ?? ''
     929                        self::logged_reply_to( $mail, $s )
    735930                );
    736931
    … …  
    762957                 */
    763958                do_action( 'dfsmtp_mail_failed', $msg, $mail, $s, $log_id );
     959        }
     960
     961        /**
     962         * Close the mail server connection after a failed send.
     963         *
     964         * When a server turns an email down at MAIL FROM or after reading it
     965         * (DATA), PHPMailer throws before it says QUIT, so the connection stays
     966         * open. The next wp_mail() in the same request then reuses that open
     967         * connection without checking which server it belongs to. The failure
     968         * alert went out over the connection that had just failed, PRO's backup
     969         * server was never actually used (the email went back to the primary),
     970         * and every retry after the first in a run reused the failed session.
     971         */
     972        private static function close_connection(): void {
     973                global $phpmailer;
     974                if ( is_object( $phpmailer ) && method_exists( $phpmailer, 'smtpClose' ) ) {
     975                        try {
     976                                $phpmailer->smtpClose();
     977                        } catch ( \Throwable $e ) {
     978                                unset( $e ); // Already gone: nothing left to close.
     979                        }
     980                }
    764981        }
    765982
    … …  
    10071224                        $this->begin_retry( (int) $log->id );
    10081225                }
     1226
     1227                // The resend keeps the Reply-To the email had, so replies to a contact
     1228                // form enquiry still reach the person who wrote it.
     1229                $headers = array( 'Content-Type: text/html; charset=UTF-8' );
     1230                if ( '' !== trim( (string) ( $log->reply_to ?? '' ) ) ) {
     1231                        $headers[] = 'Reply-To: ' . $log->reply_to;
     1232                }
     1233
    10091234                $this->internal_send = true;
    10101235                $result              = wp_mail(
    … …  
    10121237                        $log->subject,
    10131238                        $log->body,
    1014                         array( 'Content-Type: text/html; charset=UTF-8' )
     1239                        $headers
    10151240                );
    10161241                $this->internal_send = false;
  • dadsfam-email-smtp/tags/2.1.7/includes/class-dfsmtp-operations.php

    r3681109 r3749022  
    344344                $search   = isset( $input['search'] ) ? sanitize_text_field( (string) $input['search'] ) : '';
    345345                $status   = isset( $input['status'] ) ? sanitize_key( (string) $input['status'] ) : '';
    346                 if ( ! in_array( $status, array( '', 'sent', 'failed' ), true ) ) {
     346                if ( ! in_array( $status, array( '', 'sent', 'failed', 'blocked', 'suppressed', 'deferred' ), true ) ) {
    347347                        $status = '';
    348348                }
  • dadsfam-email-smtp/tags/2.1.7/languages/dadsfam-email-smtp.pot

    r3733154 r3749022  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: DadsFam SMTP 2.1.6\n"
     5"Project-Id-Version: DadsFam SMTP 2.1.7\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/dadsfam-email-smtp\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
    … …  
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2026-10-07T16:38:08+00:00\n"
     12"POT-Creation-Date: 2026-10-15T16:01:29+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.12.0\n"
    … …  
    2121#: includes/admin/pages/page-addons.php:14
    2222#: includes/admin/pages/page-analytics.php:17
    23 #: includes/admin/pages/page-changelog.php:267
     23#: includes/admin/pages/page-changelog.php:282
    2424#: includes/admin/pages/page-logs.php:46
    2525#: includes/admin/pages/page-settings.php:17
    … …  
    8080#: includes/admin/class-dfsmtp-admin.php:77
    8181#: includes/admin/class-dfsmtp-admin.php:935
    82 #: includes/admin/pages/page-changelog.php:267
     82#: includes/admin/pages/page-changelog.php:282
    8383msgid "Changelog"
    8484msgstr ""
    … …  
    9797
    9898#: includes/admin/class-dfsmtp-admin.php:114
    99 #: includes/admin/pages/page-logs.php:195
     99#: includes/admin/pages/page-logs.php:196
    100100msgid "Email"
    101101msgstr ""
    … …  
    118118
    119119#: includes/admin/class-dfsmtp-admin.php:119
    120 #: includes/admin/pages/page-logs.php:103
     120#: includes/admin/pages/page-logs.php:104
    121121msgid "To"
    122122msgstr ""
    … …  
    128128
    129129#: includes/admin/class-dfsmtp-admin.php:121
    130 #: includes/admin/pages/page-test.php:68
    131130msgid "Reply-To"
    132131msgstr ""
    133132
    134133#: includes/admin/class-dfsmtp-admin.php:122
    135 #: includes/admin/pages/page-logs.php:101
     134#: includes/admin/pages/page-logs.php:102
    136135msgid "Status"
    137136msgstr ""
    … …  
    139138#: includes/admin/class-dfsmtp-admin.php:123
    140139#: includes/admin/pages/page-analytics.php:104
    141 #: includes/admin/pages/page-logs.php:104
     140#: includes/admin/pages/page-logs.php:105
    142141#: includes/admin/pages/page-settings.php:72
    143142msgid "Connection"
    … …  
    145144
    146145#: includes/admin/class-dfsmtp-admin.php:124
    147 #: includes/admin/pages/page-logs.php:109
     146#: includes/admin/pages/page-logs.php:110
    148147msgid "Sent at"
    149148msgstr ""
    … …  
    162161
    163162#: includes/admin/class-dfsmtp-admin.php:128
    164 #: includes/admin/pages/page-logs.php:196
     163#: includes/admin/pages/page-logs.php:197
    165164msgid "Close"
    166165msgstr ""
    … …  
    375374
    376375#: includes/admin/pages/page-analytics.php:59
    377 #: includes/admin/pages/page-logs.php:92
     376#: includes/admin/pages/page-logs.php:93
    378377msgid "Send a test email"
    379378msgstr ""
    … …  
    404403
    405404#: includes/admin/pages/page-changelog.php:17
     405msgid "Replies go to the right person"
     406msgstr ""
     407
     408#: includes/admin/pages/page-changelog.php:19
     409msgid "Fixed: the Reply-To setting was added to every email, even one that already said who to reply to. Mail programs then replied to both addresses, so when someone answered a contact-form enquiry, the site owner was copied in on a private conversation. The setting is now a default: it is only used when an email has no Reply-To of its own. Contact forms, enquiry forms and WooCommerce emails keep theirs."
     410msgstr ""
     411
     412#: includes/admin/pages/page-changelog.php:20
     413msgid "Fixed: the email log showed the Reply-To setting rather than the Reply-To the email actually went out with. It now records the real one."
     414msgstr ""
     415
     416#: includes/admin/pages/page-changelog.php:21
     417msgid "Fixed: resending an email from the log, and PRO's automatic retry, keep the email's original Reply-To."
     418msgstr ""
     419
     420#: includes/admin/pages/page-changelog.php:22
     421msgid "Fixed: after one email failed, the next email sent at the same moment went out over the same broken connection and failed too. That included the \"delivery failure\" alert, PRO's backup server (the email went back to the main server instead) and every PRO retry after the first. Each email now starts a fresh connection after a failure."
     422msgstr ""
     423
     424#: includes/admin/pages/page-changelog.php:23
     425msgid "Fixed: emails held back on purpose (by staging mode, the suppression list or PRO's hourly limit) were logged as \"failed\", so PRO's automatic retry could send them anyway. An email held back on a staging site could go out once blocking was switched off, and a deferred email could go out twice. They now have their own status (Blocked, Suppressed or Deferred), are never retried and no longer count as failures. Existing log entries are corrected once when you update."
     426msgstr ""
     427
     428#: includes/admin/pages/page-changelog.php:24
     429msgid "Fixed: opening the Settings screen put the provider's default port and encryption into the form, so saving any other setting (the From name, say) could quietly change how the site connects to its mail server. The form now shows what is saved, and only fills in a provider's defaults when you choose a provider."
     430msgstr ""
     431
     432#: includes/admin/pages/page-changelog.php:25
     433msgid "Changed: the Reply-To field is now called \"Default Reply-To email\" and says it is only used when an email has none of its own."
     434msgstr ""
     435
     436#: includes/admin/pages/page-changelog.php:32
    406437msgid "The email log shows the email, every time"
    407438msgstr ""
    408439
    409 #: includes/admin/pages/page-changelog.php:19
     440#: includes/admin/pages/page-changelog.php:34
    410441msgid "Fixed: opening an email in the log could show an empty white box instead of the email, so you had to reload the page, sometimes many times, before it showed. The email is now drawn fresh each time you open one, and it shows every time."
    411442msgstr ""
    412443
    413 #: includes/admin/pages/page-changelog.php:20
     444#: includes/admin/pages/page-changelog.php:35
    414445msgid "Fixed: the dark background behind an open email covered only part of the screen."
    415446msgstr ""
    416447
    417 #: includes/admin/pages/page-changelog.php:21
     448#: includes/admin/pages/page-changelog.php:36
    418449msgid "Fixed: with PRO's open tracking on, looking at an email in the log counted as the person opening it, so every look pushed the open figures up. Looking no longer counts."
    419450msgstr ""
    420451
    421 #: includes/admin/pages/page-changelog.php:22
     452#: includes/admin/pages/page-changelog.php:37
    422453msgid "Improved: the window opens the moment you click View and says it is loading. If the email cannot be loaded, because the page has been open too long, your login has timed out or the connection dropped, it says so in plain words with a button to try again or reload the page. Before, nothing happened at all."
    423454msgstr ""
    424455
    425 #: includes/admin/pages/page-changelog.php:23
     456#: includes/admin/pages/page-changelog.php:38
    426457msgid "Improved: links in the email open in a new tab, plain-text emails keep their line breaks, and the Escape key closes the window."
    427458msgstr ""
    428459
    429 #: includes/admin/pages/page-changelog.php:24
     460#: includes/admin/pages/page-changelog.php:39
    430461msgid "Improved: this screen shows the newest release at the top, PRO releases included."
    431462msgstr ""
    432463
    433 #: includes/admin/pages/page-changelog.php:31
     464#: includes/admin/pages/page-changelog.php:46
    434465msgid "One failed email stays one failed email"
    435466msgstr ""
    436467
    437 #: includes/admin/pages/page-changelog.php:33
     468#: includes/admin/pages/page-changelog.php:48
    438469msgid "Fixed: with PRO's automatic retry switched on, one failed email could turn into dozens. Each retry was logged as a brand-new email, that copy failed too and was retried in its turn, and every failure sent you another \"delivery failure\" alert. A retry now updates the email's original log entry, so it is tried the number of times you set and then it stops."
    439470msgstr ""
    440471
    441 #: includes/admin/pages/page-changelog.php:34
     472#: includes/admin/pages/page-changelog.php:49
    442473msgid "Fixed: an email with no recipient address, such as an invoice for an order with no email on it, was queued for retry even though no retry could ever deliver it. It is now logged once, you get one alert that says there was nobody to send it to, and it is never retried."
    443474msgstr ""
    444475
    445 #: includes/admin/pages/page-changelog.php:35
     476#: includes/admin/pages/page-changelog.php:50
    446477msgid "Fixed: resending a failed email from the log now updates that entry, so an email you have already resent by hand can never be sent a second time by the retry job."
    447478msgstr ""
    448479
    449 #: includes/admin/pages/page-changelog.php:36
     480#: includes/admin/pages/page-changelog.php:51
    450481msgid "Changed: the Retries column in the email log shows a dash for an email that will not be retried."
    451482msgstr ""
    452483
    453 #: includes/admin/pages/page-changelog.php:43
     484#: includes/admin/pages/page-changelog.php:58
    454485msgid "WordPress.org housekeeping"
    455486msgstr ""
    456487
    457 #: includes/admin/pages/page-changelog.php:45
     488#: includes/admin/pages/page-changelog.php:60
    458489msgid "Tidied: numbers read from the settings forms and the log screen are now cleaned exactly the way WordPress.org asks. Nothing changes in how the plugin works."
    459490msgstr ""
    460491
    461 #: includes/admin/pages/page-changelog.php:46
     492#: includes/admin/pages/page-changelog.php:61
    462493msgid "Added: a translation template, so the plugin can be translated."
    463494msgstr ""
    464495
    465 #: includes/admin/pages/page-changelog.php:53
     496#: includes/admin/pages/page-changelog.php:68
    466497msgid "Emails other plugins stop now stay stopped"
    467498msgstr ""
    468499
    469 #: includes/admin/pages/page-changelog.php:55
     500#: includes/admin/pages/page-changelog.php:70
    470501msgid "Fixed: if another plugin had already stopped an email, for example a test-mode switch on a site that is not live yet, DadsFam SMTP could still send it whenever its own blocking mode was off. It now always respects that decision. Normal sending is unchanged."
    471502msgstr ""
    472503
    473 #: includes/admin/pages/page-changelog.php:56
     504#: includes/admin/pages/page-changelog.php:71
    474505msgid "Tidied: removed an old translation-loading call. WordPress has loaded plugin translations by itself since version 4.6."
    475506msgstr ""
    476507
    477 #: includes/admin/pages/page-changelog.php:63
     508#: includes/admin/pages/page-changelog.php:78
    478509msgid "Plugin page screenshots"
    479510msgstr ""
    480511
    481 #: includes/admin/pages/page-changelog.php:65
     512#: includes/admin/pages/page-changelog.php:80
    482513msgid "Added screenshots to the WordPress.org plugin page, so the settings, deliverability score and email log can be seen before installing. Nothing in the plugin itself changed."
    483514msgstr ""
    484515
    485 #: includes/admin/pages/page-changelog.php:72
     516#: includes/admin/pages/page-changelog.php:87
    486517msgid "More AI abilities, for when mail goes wrong"
    487518msgstr ""
    488519
    489 #: includes/admin/pages/page-changelog.php:74
     520#: includes/admin/pages/page-changelog.php:89
    490521msgid "Added: an assistant can now open a single log entry in full — who it went to, which provider carried it, and the exact error the server gave back."
    491522msgstr ""
    492523
    493 #: includes/admin/pages/page-changelog.php:75
     524#: includes/admin/pages/page-changelog.php:90
    494525msgid "Privacy: the stored message body and raw headers are never returned to an assistant. The body is kept only so PRO can retry a failed send."
    495526msgstr ""
    496527
    497 #: includes/admin/pages/page-changelog.php:76
     528#: includes/admin/pages/page-changelog.php:91
    498529msgid "Added: list the failed emails still waiting to be retried, with the error that stopped each one. Retrying itself remains a PRO feature."
    499530msgstr ""
    500531
    501 #: includes/admin/pages/page-changelog.php:77
     532#: includes/admin/pages/page-changelog.php:92
    502533msgid "Added: export this site's mail configuration and apply it to another site. No password is ever included, so each site still needs its own credential set before it can send."
    503534msgstr ""
    504535
    505 #: includes/admin/pages/page-changelog.php:78
     536#: includes/admin/pages/page-changelog.php:93
    506537msgid "Added: a single support report gathering versions, configuration, the SPF, DKIM and DMARC checks and recent sending statistics."
    507538msgstr ""
    508539
    509 #: includes/admin/pages/page-changelog.php:79
    510 #: includes/admin/pages/page-changelog.php:100
     540#: includes/admin/pages/page-changelog.php:94
     541#: includes/admin/pages/page-changelog.php:115
     542#: includes/admin/pages/page-changelog.php:125
     543msgid "No changes to how the plugin sends, logs or tests email."
     544msgstr ""
     545
     546#: includes/admin/pages/page-changelog.php:101
     547msgid "Packaging fix"
     548msgstr ""
     549
     550#: includes/admin/pages/page-changelog.php:103
     551msgid "Packaging: trimmed the plugin tags to the five WordPress.org allows. The extra \"ai\" and \"mcp\" tags were being ignored on import, so they have been removed. No functional change."
     552msgstr ""
     553
    511554#: includes/admin/pages/page-changelog.php:110
    512 msgid "No changes to how the plugin sends, logs or tests email."
    513 msgstr ""
    514 
    515 #: includes/admin/pages/page-changelog.php:86
    516 msgid "Packaging fix"
    517 msgstr ""
    518 
    519 #: includes/admin/pages/page-changelog.php:88
    520 msgid "Packaging: trimmed the plugin tags to the five WordPress.org allows. The extra \"ai\" and \"mcp\" tags were being ignored on import, so they have been removed. No functional change."
    521 msgstr ""
    522 
    523 #: includes/admin/pages/page-changelog.php:95
    524555msgid "AI assistant support (WordPress Abilities API)"
    525556msgstr ""
    526557
    527 #: includes/admin/pages/page-changelog.php:97
     558#: includes/admin/pages/page-changelog.php:112
    528559msgid "Added: if you connect an AI assistant to your site through an MCP plugin such as WPVibe, it can now read your SMTP stats, logs and settings, check deliverability (SPF, DKIM, DMARC), send a test email and change your configuration for you, through the WordPress Abilities API (WordPress 6.9 and newer)."
    529560msgstr ""
    530561
    531 #: includes/admin/pages/page-changelog.php:98
     562#: includes/admin/pages/page-changelog.php:113
    532563msgid "Security: every AI action requires administrator access, and your SMTP password is never exposed to the assistant. Read actions report only whether a password is set."
    533564msgstr ""
    534565
    535 #: includes/admin/pages/page-changelog.php:99
     566#: includes/admin/pages/page-changelog.php:114
    536567msgid "On WordPress versions without the Abilities API, nothing changes and the plugin works exactly as before."
    537568msgstr ""
    538569
    539 #: includes/admin/pages/page-changelog.php:107
     570#: includes/admin/pages/page-changelog.php:122
    540571msgid "A word about PRO"
    541572msgstr ""
    542573
    543 #: includes/admin/pages/page-changelog.php:109
     574#: includes/admin/pages/page-changelog.php:124
    544575msgid "Added: a plain-English note in the readme explaining what stays free, why the optional PRO add-on exists and what it does. No features were moved behind a paywall."
    545576msgstr ""
    546577
    547 #: includes/admin/pages/page-changelog.php:117
     578#: includes/admin/pages/page-changelog.php:132
    548579msgid "Uninstall cleanup made precise and multisite-aware"
    549580msgstr ""
    550581
    551 #: includes/admin/pages/page-changelog.php:119
     582#: includes/admin/pages/page-changelog.php:134
    552583msgid "Changed: uninstall now removes only this plugin's own data, addressed by exact name (its three options, its scheduled event and its log table), instead of sweeping the options table for anything sharing the \"dfsmtp_\" prefix. Data belonging to a separate add-on that happens to use the same prefix is left alone."
    553584msgstr ""
    554585
    555 #: includes/admin/pages/page-changelog.php:120
     586#: includes/admin/pages/page-changelog.php:135
    556587msgid "Changed: uninstall now runs on every site of a multisite network rather than only the current one. The per-site \"keep data on uninstall\" preference is still honoured for each site."
    557588msgstr ""
    558589
    559 #: includes/admin/pages/page-changelog.php:127
     590#: includes/admin/pages/page-changelog.php:142
    560591msgid "Import hardening and directory compliance"
    561592msgstr ""
    562593
    563 #: includes/admin/pages/page-changelog.php:129
     594#: includes/admin/pages/page-changelog.php:144
    564595msgid "Security: an imported configuration file is cleaned key by key against a list of the settings this plugin owns, with each value checked for what it is allowed to contain"
    565596msgstr ""
    566597
    567 #: includes/admin/pages/page-changelog.php:130
     598#: includes/admin/pages/page-changelog.php:145
    568599msgid "Added: an External services section to the readme setting out what is sent to your SMTP provider, when and where"
    569600msgstr ""
    570601
    571 #: includes/admin/pages/page-changelog.php:131
     602#: includes/admin/pages/page-changelog.php:146
    572603msgid "Fixed: the plugin header pointed at a page that did not exist"
    573604msgstr ""
    574605
    575 #: includes/admin/pages/page-changelog.php:132
     606#: includes/admin/pages/page-changelog.php:147
    576607msgid "Changed: the text domain now matches the plugin slug so the community translation tools can pick it up"
    577608msgstr ""
    578609
    579 #: includes/admin/pages/page-changelog.php:139
     610#: includes/admin/pages/page-changelog.php:154
    580611msgid "Stored password hardening"
    581612msgstr ""
    582613
    583 #: includes/admin/pages/page-changelog.php:141
     614#: includes/admin/pages/page-changelog.php:156
    584615msgid "Security: SMTP passwords are stored with authenticated AES-256-GCM, so a tampered value is detected instead of silently decrypting to something else. Passwords saved by earlier versions are read transparently and keep working."
    585616msgstr ""
    586617
    587 #: includes/admin/pages/page-changelog.php:142
     618#: includes/admin/pages/page-changelog.php:157
    588619msgid "Security: removed the fallback that could store a password as plain text or base64 if encryption failed. The save is now refused with a clear message instead."
    589620msgstr ""
    590621
    591 #: includes/admin/pages/page-changelog.php:143
     622#: includes/admin/pages/page-changelog.php:158
    592623msgid "Changed: uninstall clears everything under this plugin's own prefix generically rather than listing add-on option names."
    593624msgstr ""
    594625
    595 #: includes/admin/pages/page-changelog.php:150
     626#: includes/admin/pages/page-changelog.php:165
    596627msgid "Accurate WooCommerce log labelling"
    597628msgstr ""
    598629
    599 #: includes/admin/pages/page-changelog.php:152
     630#: includes/admin/pages/page-changelog.php:167
    600631msgid "Fixed: WooCommerce email types were detected by searching the subject line, so any email whose subject contained a word like \"Completed\" or \"Invoice\" was logged as a WooCommerce order email. The type now comes from WooCommerce's own email object."
    601632msgstr ""
    602633
    603 #: includes/admin/pages/page-changelog.php:153
     634#: includes/admin/pages/page-changelog.php:168
    604635msgid "Fixed: failed sends now record the WooCommerce email type, so a failed order email can be told apart from other failures."
    605636msgstr ""
    606637
    607 #: includes/admin/pages/page-changelog.php:160
     638#: includes/admin/pages/page-changelog.php:175
    608639msgid "Version alignment"
    609640msgstr ""
    610641
    611 #: includes/admin/pages/page-changelog.php:162
     642#: includes/admin/pages/page-changelog.php:177
    612643msgid "Version number aligned with the separate PRO add-on. No functional change to this plugin."
    613644msgstr ""
    614645
    615 #: includes/admin/pages/page-changelog.php:169
     646#: includes/admin/pages/page-changelog.php:184
    616647msgid "PHP 8.4 readiness"
    617648msgstr ""
    618649
    619 #: includes/admin/pages/page-changelog.php:171
     650#: includes/admin/pages/page-changelog.php:186
    620651msgid "Fixed: the connection tester used an implicitly nullable parameter, deprecated in PHP 8.4."
    621652msgstr ""
    622653
    623 #: includes/admin/pages/page-changelog.php:172
     654#: includes/admin/pages/page-changelog.php:187
    624655msgid "Fixed: CSV export passes the fputcsv() escape argument explicitly, producing RFC 4180 output that spreadsheets read correctly."
    625656msgstr ""
    626657
    627 #: includes/admin/pages/page-changelog.php:173
     658#: includes/admin/pages/page-changelog.php:188
    628659msgid "Verified against PHP 8.0 through 8.4 and WordPress 7.0."
    629660msgstr ""
    630661
    631 #: includes/admin/pages/page-changelog.php:180
     662#: includes/admin/pages/page-changelog.php:195
    632663msgid "Core / add-on split and three delivery fixes"
    633664msgstr ""
    634665
    635 #: includes/admin/pages/page-changelog.php:182
     666#: includes/admin/pages/page-changelog.php:197
    636667msgid "Fixed: a failed delivery could trigger an unbounded chain of failure-alert emails, exhausting PHP memory and hammering the mail server. The alert path is now guarded against re-entry."
    637668msgstr ""
    638669
    639 #: includes/admin/pages/page-changelog.php:183
     670#: includes/admin/pages/page-changelog.php:198
    640671msgid "Fixed: the SMTP connection test now terminates every command with CRLF as RFC 5321 requires. Strict servers such as Microsoft 365 no longer hang or reject the handshake."
    641672msgstr ""
    642673
    643 #: includes/admin/pages/page-changelog.php:184
     674#: includes/admin/pages/page-changelog.php:199
    644675msgid "Fixed: the suppression list now matches whole addresses and domains instead of loose substrings, so a short entry can no longer block unrelated recipients."
    645676msgstr ""
    646677
    647 #: includes/admin/pages/page-changelog.php:185
     678#: includes/admin/pages/page-changelog.php:200
    648679msgid "Fixed: uninstall now removes every option the plugin creates, including the log table version marker."
    649680msgstr ""
    650681
    651 #: includes/admin/pages/page-changelog.php:186
     682#: includes/admin/pages/page-changelog.php:201
    652683msgid "Fixed: the log table is created with all columns present rather than relying on a later migration."
    653684msgstr ""
    654685
    655 #: includes/admin/pages/page-changelog.php:187
     686#: includes/admin/pages/page-changelog.php:202
    656687msgid "Changed: email logging is now unlimited for everyone, with retention controlled by a \"keep logs for N days\" setting instead of a fixed entry cap."
    657688msgstr ""
    658689
    659 #: includes/admin/pages/page-changelog.php:188
     690#: includes/admin/pages/page-changelog.php:203
    660691msgid "Changed: CSV export and the full email body viewer are available on every site."
    661692msgstr ""
    662693
    663 #: includes/admin/pages/page-changelog.php:189
     694#: includes/admin/pages/page-changelog.php:204
    664695msgid "Changed: the plugin no longer overrides the WordPress core \"weekly\" cron schedule."
    665696msgstr ""
    666697
    667 #: includes/admin/pages/page-changelog.php:190
     698#: includes/admin/pages/page-changelog.php:205
    668699msgid "New: a documented hook API so add-ons can extend the send pipeline and admin screens cleanly."
    669700msgstr ""
    670701
    671 #: includes/admin/pages/page-changelog.php:191
     702#: includes/admin/pages/page-changelog.php:206
    672703msgid "New: admin styles are served from a proper enqueued stylesheet rather than an inline style block."
    673704msgstr ""
    674705
    675 #: includes/admin/pages/page-changelog.php:192
     706#: includes/admin/pages/page-changelog.php:207
    676707msgid "Upgrading from 1.6.x keeps every setting and log entry — the folder name and option keys are unchanged."
    677708msgstr ""
    678709
    679 #: includes/admin/pages/page-changelog.php:199
     710#: includes/admin/pages/page-changelog.php:214
    680711msgid "Routing and logging refinements"
    681712msgstr ""
    682713
    683 #: includes/admin/pages/page-changelog.php:201
     714#: includes/admin/pages/page-changelog.php:216
    684715msgid "Routing rules with an empty match value are skipped instead of capturing every email."
    685716msgstr ""
    686717
    687 #: includes/admin/pages/page-changelog.php:202
     718#: includes/admin/pages/page-changelog.php:217
    688719msgid "WooCommerce email detection moved to a hook-based flag consumed by a single outgoing email."
    689720msgstr ""
    690721
    691 #: includes/admin/pages/page-changelog.php:203
     722#: includes/admin/pages/page-changelog.php:218
    692723msgid "The log list view no longer selects the body column, preventing memory exhaustion on large logs."
    693724msgstr ""
    694725
    695 #: includes/admin/pages/page-changelog.php:210
     726#: includes/admin/pages/page-changelog.php:225
    696727msgid "Email health score"
    697728msgstr ""
    698729
    699 #: includes/admin/pages/page-changelog.php:212
     730#: includes/admin/pages/page-changelog.php:227
    700731msgid "New deliverability score combining DNS authentication, configuration and real send history."
    701732msgstr ""
    702733
    703 #: includes/admin/pages/page-changelog.php:213
     734#: includes/admin/pages/page-changelog.php:228
    704735msgid "Dashboard widget showing sent, failed and success rate at a glance."
    705736msgstr ""
    706737
    707 #: includes/admin/pages/page-changelog.php:220
     738#: includes/admin/pages/page-changelog.php:235
    708739msgid "Backup, migrate and setup wizard"
    709740msgstr ""
    710741
    711 #: includes/admin/pages/page-changelog.php:222
     742#: includes/admin/pages/page-changelog.php:237
    712743msgid "Export and import your configuration as JSON. Passwords are never included."
    713744msgstr ""
    714745
    715 #: includes/admin/pages/page-changelog.php:223
     746#: includes/admin/pages/page-changelog.php:238
    716747msgid "Guided first-run setup for new installations."
    717748msgstr ""
    718749
    719 #: includes/admin/pages/page-changelog.php:230
     750#: includes/admin/pages/page-changelog.php:245
    720751msgid "Delivery controls"
    721752msgstr ""
    722753
    723 #: includes/admin/pages/page-changelog.php:232
     754#: includes/admin/pages/page-changelog.php:247
    724755msgid "Blocking mode stops all outgoing email on staging copies while still logging every attempt."
    725756msgstr ""
    726757
    727 #: includes/admin/pages/page-changelog.php:233
     758#: includes/admin/pages/page-changelog.php:248
    728759msgid "Suppression list for addresses and domains that must never be contacted."
    729760msgstr ""
    730761
    731 #: includes/admin/pages/page-changelog.php:234
     762#: includes/admin/pages/page-changelog.php:249
    732763msgid "Deliverability checker for SPF, DKIM, DMARC and MX records."
    733764msgstr ""
    734765
    735 #: includes/admin/pages/page-changelog.php:241
     766#: includes/admin/pages/page-changelog.php:256
    736767msgid "First release"
    737768msgstr ""
    738769
    739 #: includes/admin/pages/page-changelog.php:243
     770#: includes/admin/pages/page-changelog.php:258
    740771msgid "SMTP delivery with 13 pre-configured providers and AES-256-CBC encrypted credentials."
    741772msgstr ""
    742773
    743 #: includes/admin/pages/page-changelog.php:244
     774#: includes/admin/pages/page-changelog.php:259
    744775msgid "Full email logging with one-click resend."
    745776msgstr ""
    746777
    747 #: includes/admin/pages/page-changelog.php:245
     778#: includes/admin/pages/page-changelog.php:260
    748779msgid "Live send test with real SMTP diagnostic output."
    749780msgstr ""
    750781
    751 #: includes/admin/pages/page-changelog.php:271
     782#: includes/admin/pages/page-changelog.php:286
    752783msgid "Release History"
    753784msgstr ""
    754785
    755786#. translators: %s: current plugin version
    756 #: includes/admin/pages/page-changelog.php:276
     787#: includes/admin/pages/page-changelog.php:291
    757788#, php-format
    758789msgid "You are running version %s."
    … …  
    775806msgstr ""
    776807
    777 #: includes/admin/pages/page-logs.php:62
     808#: includes/admin/pages/page-logs.php:61
     809msgid "Deferred"
     810msgstr ""
     811
     812#: includes/admin/pages/page-logs.php:63
    778813msgid "Search"
    779814msgstr ""
    780815
    781 #: includes/admin/pages/page-logs.php:64
     816#: includes/admin/pages/page-logs.php:65
    782817msgid "Clear"
    783818msgstr ""
    784819
    785 #: includes/admin/pages/page-logs.php:68
     820#: includes/admin/pages/page-logs.php:69
    786821msgid "Export CSV"
    787822msgstr ""
    788823
    789 #: includes/admin/pages/page-logs.php:69
     824#: includes/admin/pages/page-logs.php:70
    790825msgid "Clear all"
    791826msgstr ""
    792827
    793828#. translators: %s: search term
    794 #: includes/admin/pages/page-logs.php:83
     829#: includes/admin/pages/page-logs.php:84
    795830#, php-format
    796831msgid "No logs matching %s."
    797832msgstr ""
    798833
    799 #: includes/admin/pages/page-logs.php:87
     834#: includes/admin/pages/page-logs.php:88
    800835msgid "No email logs yet."
    801836msgstr ""
    802837
    803 #: includes/admin/pages/page-logs.php:93
     838#: includes/admin/pages/page-logs.php:94
    804839msgid "to see entries appear here."
    805840msgstr ""
    806841
    807 #: includes/admin/pages/page-logs.php:102
     842#: includes/admin/pages/page-logs.php:103
    808843msgid "Subject"
    809844msgstr ""
    810845
    811 #: includes/admin/pages/page-logs.php:108
     846#: includes/admin/pages/page-logs.php:109
    812847msgid "Retries"
    813848msgstr ""
    814849
    815 #: includes/admin/pages/page-logs.php:110
     850#: includes/admin/pages/page-logs.php:111
    816851msgid "Actions"
    817852msgstr ""
    818853
    819 #: includes/admin/pages/page-logs.php:139
     854#: includes/admin/pages/page-logs.php:140
    820855msgid "Not retried: this email has no valid recipient."
    821856msgstr ""
    822857
    823 #: includes/admin/pages/page-logs.php:143
     858#: includes/admin/pages/page-logs.php:144
    824859msgid "View"
    825860msgstr ""
    826861
    827 #: includes/admin/pages/page-logs.php:144
     862#: includes/admin/pages/page-logs.php:145
    828863msgid "Resend"
    829864msgstr ""
    830865
    831 #: includes/admin/pages/page-logs.php:145
     866#: includes/admin/pages/page-logs.php:146
    832867msgid "Delete"
    833868msgstr ""
    834869
    835870#. translators: %s: total number of log entries
    836 #: includes/admin/pages/page-logs.php:183
     871#: includes/admin/pages/page-logs.php:184
    837872#, php-format
    838873msgid "%s entries"
    … …  
    954989
    955990#: includes/admin/pages/page-settings.php:145
    956 msgid "Reply-To email"
     991msgid "Default Reply-To email"
    957992msgstr ""
    958993
    959994#: includes/admin/pages/page-settings.php:146
    960 msgid "Optional — replies go here instead"
    961 msgstr ""
    962 
    963 #: includes/admin/pages/page-settings.php:149
     995msgid "Optional"
     996msgstr ""
     997
     998#: includes/admin/pages/page-settings.php:147
     999msgid "Replies go here unless the email sets its own. Contact forms and shop emails that name who to reply to keep it, so replies reach the right person."
     1000msgstr ""
     1001
     1002#: includes/admin/pages/page-settings.php:150
    9641003msgid "Return-Path / envelope sender"
    9651004msgstr ""
    9661005
    967 #: includes/admin/pages/page-settings.php:150
     1006#: includes/admin/pages/page-settings.php:151
    9681007msgid "Optional — used for bounce tracking"
    9691008msgstr ""
    9701009
    971 #: includes/admin/pages/page-settings.php:151
     1010#: includes/admin/pages/page-settings.php:152
    9721011msgid "Must match your SMTP sender domain."
    9731012msgstr ""
    9741013
    975 #: includes/admin/pages/page-settings.php:158
     1014#: includes/admin/pages/page-settings.php:159
    9761015msgid "Logging &amp; Alerts"
    9771016msgstr ""
    9781017
    979 #: includes/admin/pages/page-settings.php:162
     1018#: includes/admin/pages/page-settings.php:163
    9801019msgid "Enable email logging"
    9811020msgstr ""
    9821021
    983 #: includes/admin/pages/page-settings.php:164
     1022#: includes/admin/pages/page-settings.php:165
    9841023msgid "Every send is recorded in full, with no entry limit."
    9851024msgstr ""
    9861025
    987 #: includes/admin/pages/page-settings.php:167
     1026#: includes/admin/pages/page-settings.php:168
    9881027msgid "Keep logs for (days)"
    9891028msgstr ""
    9901029
    991 #: includes/admin/pages/page-settings.php:169
     1030#: includes/admin/pages/page-settings.php:170
    9921031msgid "Older entries are purged daily. Set to 0 to keep everything forever."
    9931032msgstr ""
    9941033
    995 #: includes/admin/pages/page-settings.php:174
     1034#: includes/admin/pages/page-settings.php:175
    9961035msgid "Email me when a delivery fails"
    9971036msgstr ""
    9981037
    9991038#. translators: %s: admin email address
    1000 #: includes/admin/pages/page-settings.php:180
     1039#: includes/admin/pages/page-settings.php:181
    10011040#, php-format
    10021041msgid "Alerts are sent to %s."
    10031042msgstr ""
    10041043
    1005 #: includes/admin/pages/page-settings.php:189
     1044#: includes/admin/pages/page-settings.php:190
    10061045msgid "Delivery Controls"
    10071046msgstr ""
    10081047
    1009 #: includes/admin/pages/page-settings.php:193
     1048#: includes/admin/pages/page-settings.php:194
    10101049msgid "Block all outgoing email (staging mode)"
    10111050msgstr ""
    10121051
    1013 #: includes/admin/pages/page-settings.php:195
     1052#: includes/admin/pages/page-settings.php:196
    10141053msgid "Nothing is delivered, but every attempt is still logged. Ideal for staging and development copies of a live site."
    10151054msgstr ""
    10161055
    1017 #: includes/admin/pages/page-settings.php:198
     1056#: includes/admin/pages/page-settings.php:199
    10181057msgid "Suppression list"
    10191058msgstr ""
    10201059
    1021 #: includes/admin/pages/page-settings.php:200
     1060#: includes/admin/pages/page-settings.php:201
    10221061msgid "One entry per line. Use a full address to block that address, or start with @ to block a whole domain."
    10231062msgstr ""
    10241063
    1025 #: includes/admin/pages/page-settings.php:206
     1064#: includes/admin/pages/page-settings.php:207
    10261065msgid "Advanced"
    10271066msgstr ""
    10281067
    1029 #: includes/admin/pages/page-settings.php:208
     1068#: includes/admin/pages/page-settings.php:209
    10301069msgid "Default DKIM selector"
    10311070msgstr ""
    10321071
    1033 #: includes/admin/pages/page-settings.php:210
     1072#: includes/admin/pages/page-settings.php:211
    10341073msgid "Used by the deliverability checker and health score. cPanel: default · Microsoft 365: selector1 · Google Workspace: google · SendGrid: s1"
    10351074msgstr ""
    10361075
    1037 #: includes/admin/pages/page-settings.php:214
     1076#: includes/admin/pages/page-settings.php:215
    10381077msgid "Keep all settings and logs if this plugin is deleted"
    10391078msgstr ""
    10401079
    1041 #: includes/admin/pages/page-settings.php:228
     1080#: includes/admin/pages/page-settings.php:229
    10421081msgid "Save settings"
    10431082msgstr ""
    … …  
    10971136#: includes/admin/pages/page-test.php:65
    10981137msgid "Not configured"
     1138msgstr ""
     1139
     1140#: includes/admin/pages/page-test.php:68
     1141msgid "Default Reply-To"
    10991142msgstr ""
    11001143
    … …  
    14501493msgstr ""
    14511494
    1452 #: includes/class-dfsmtp-mailer.php:778
     1495#: includes/class-dfsmtp-mailer.php:995
    14531496msgid "(nobody: the email had no recipient address)"
    14541497msgstr ""
    14551498
    1456 #: includes/class-dfsmtp-mailer.php:786
     1499#: includes/class-dfsmtp-mailer.php:1003
    14571500msgid "This email cannot be delivered as it stands, so it will not be retried. Fix the address where the email comes from (for example, add an email address to the order), then send it again."
    14581501msgstr ""
  • dadsfam-email-smtp/tags/2.1.7/readme.txt

    r3733154 r3749022  
    55Tested up to: 7.1
    66Requires PHP: 8.0
    7 Stable tag: 2.1.6
     7Stable tag: 2.1.7
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
    … …  
    117117No. Each send writes one indexed row, and the log list never loads message bodies. Old entries are purged automatically on a daily schedule according to your retention setting.
    118118
     119= Replies to my contact form go to me as well as the visitor. =
     120
     121Update to 2.1.7 or later. The Default Reply-To setting is only used for emails that do not say who to reply to, so a contact form or enquiry form that sets the visitor as the Reply-To keeps it, and your reply goes to them alone.
     122
    119123= How do I stop a staging site emailing real customers? =
    120124
    … …  
    156160
    157161== Changelog ==
     162
     163= 2.1.7 =
     164* Fixed: the Reply-To setting was added to every email, even one that already said who to reply to. Mail programs then replied to both addresses, so when someone answered a contact-form enquiry, the site owner was copied in on a private conversation. The setting is now a default: it is only used when an email has no Reply-To of its own. Contact forms, enquiry forms and WooCommerce emails keep theirs.
     165* Fixed: the email log showed the Reply-To setting rather than the Reply-To the email actually went out with. It now records the real one.
     166* Fixed: resending an email from the log, and PRO's automatic retry, keep the email's original Reply-To.
     167* Fixed: after one email failed, the next email sent at the same moment went out over the same broken connection and failed too. That included the "delivery failure" alert, PRO's backup server (the email went back to the main server instead) and every PRO retry after the first. Each email now starts a fresh connection after a failure.
     168* Fixed: emails held back on purpose (by staging mode, the suppression list or PRO's hourly limit) were logged as "failed", so PRO's automatic retry could send them anyway. An email held back on a staging site could go out once blocking was switched off, and a deferred email could go out twice. They now have their own status (Blocked, Suppressed or Deferred), are never retried and no longer count as failures. Existing log entries are corrected once when you update.
     169* Fixed: opening the Settings screen put the provider's default port and encryption into the form, so saving any other setting (the From name, say) could quietly change how the site connects to its mail server. The form now shows what is saved, and only fills in a provider's defaults when you choose a provider.
     170* Changed: the Reply-To field is now called "Default Reply-To email" and says it is only used when an email has none of its own.
    158171
    159172= 2.1.6 =
    … …  
    270283== Upgrade Notice ==
    271284
     285= 2.1.7 =
     286Replies to contact forms no longer copy in the site owner, an email no longer fails because the one before it failed, and PRO no longer retries emails held back on purpose. Recommended for every site.
     287
    272288= 2.1.6 =
    273289Fixes the email log sometimes showing an empty white box instead of the email, and stops a look at a logged email counting as an open. Recommended.
  • dadsfam-email-smtp/trunk/assets/css/admin.css

    r3733154 r3749022  
    258258.dfsmtp-pill--blocked{background:#fef3c7;color:#92400e;}
    259259.dfsmtp-pill--suppressed{background:#e0e7ff;color:#3730a3;}
     260.dfsmtp-pill--deferred{background:#e0f2fe;color:#075985;}
    260261.dfsmtp-pill--major{background:var(--df-grad);color:#fff;}
    261262.dfsmtp-pill--minor{background:#dbeafe;color:#1e40af;}
  • dadsfam-email-smtp/trunk/assets/js/admin.js

    r3733154 r3749022  
    6363        };
    6464
     65        function showProviderGuide( key ) {
     66                if ( guides[ key ] ) {
     67                        $( '#dfsmtp-provider-guide-text' ).html( guides[ key ] );
     68                        $( '#dfsmtp-provider-guide' ).show();
     69                } else {
     70                        $( '#dfsmtp-provider-guide' ).hide();
     71                }
     72        }
     73
     74        // Picking a provider fills in its host, port and encryption. Opening the
     75        // page must not: it used to, so the saved port and encryption were
     76        // replaced by the provider's defaults on every visit, and saving any other
     77        // setting quietly changed the connection.
    6578        $( '#dfsmtp-provider' ).on( 'change', function () {
    6679                var key = $( this ).val();
    … …  
    7588                }
    7689
    77                 if ( guides[ key ] ) {
    78                         $( '#dfsmtp-provider-guide-text' ).html( guides[ key ] );
    79                         $( '#dfsmtp-provider-guide' ).show();
    80                 } else {
    81                         $( '#dfsmtp-provider-guide' ).hide();
    82                 }
    83         } ).trigger( 'change' );
     90                showProviderGuide( key );
     91        } );
     92        showProviderGuide( $( '#dfsmtp-provider' ).val() );
    8493
    8594        /* ── Auth toggle & password visibility ────────────────────────────────── */
  • dadsfam-email-smtp/trunk/dadsfam-email-smtp.php

    r3733154 r3749022  
    44 * Plugin URI:        https://plugins.dadsfam.co.za/
    55 * Description:       Reliable WordPress email delivery over SMTP. 13+ pre-configured providers, encrypted credentials, full email logging with resend, live SMTP diagnostics, SPF/DKIM/DMARC deliverability checks and WooCommerce email routing.
    6  * Version:           2.1.6
     6 * Version:           2.1.7
    77 * Requires at least: 6.0
    88 * Requires PHP:      8.0
    … …  
    4949
    5050// ── Constants ────────────────────────────────────────────────────────────────
    51 define( 'DFSMTP_VERSION', '2.1.6' );
     51define( 'DFSMTP_VERSION', '2.1.7' );
    5252define( 'DFSMTP_FILE', __FILE__ );
    5353define( 'DFSMTP_DIR', plugin_dir_path( __FILE__ ) );
  • dadsfam-email-smtp/trunk/includes/admin/pages/page-changelog.php

    r3733154 r3749022  
    1111
    1212$dfsmtp_changelog = array(
     13        array(
     14                'version' => '2.1.7',
     15                'date'    => '2026-10-15',
     16                'type'    => 'patch',
     17                'title'   => __( 'Replies go to the right person', 'dadsfam-email-smtp' ),
     18                'changes' => array(
     19                        __( 'Fixed: the Reply-To setting was added to every email, even one that already said who to reply to. Mail programs then replied to both addresses, so when someone answered a contact-form enquiry, the site owner was copied in on a private conversation. The setting is now a default: it is only used when an email has no Reply-To of its own. Contact forms, enquiry forms and WooCommerce emails keep theirs.', 'dadsfam-email-smtp' ),
     20                        __( 'Fixed: the email log showed the Reply-To setting rather than the Reply-To the email actually went out with. It now records the real one.', 'dadsfam-email-smtp' ),
     21                        __( 'Fixed: resending an email from the log, and PRO\'s automatic retry, keep the email\'s original Reply-To.', 'dadsfam-email-smtp' ),
     22                        __( 'Fixed: after one email failed, the next email sent at the same moment went out over the same broken connection and failed too. That included the "delivery failure" alert, PRO\'s backup server (the email went back to the main server instead) and every PRO retry after the first. Each email now starts a fresh connection after a failure.', 'dadsfam-email-smtp' ),
     23                        __( 'Fixed: emails held back on purpose (by staging mode, the suppression list or PRO\'s hourly limit) were logged as "failed", so PRO\'s automatic retry could send them anyway. An email held back on a staging site could go out once blocking was switched off, and a deferred email could go out twice. They now have their own status (Blocked, Suppressed or Deferred), are never retried and no longer count as failures. Existing log entries are corrected once when you update.', 'dadsfam-email-smtp' ),
     24                        __( 'Fixed: opening the Settings screen put the provider\'s default port and encryption into the form, so saving any other setting (the From name, say) could quietly change how the site connects to its mail server. The form now shows what is saved, and only fills in a provider\'s defaults when you choose a provider.', 'dadsfam-email-smtp' ),
     25                        __( 'Changed: the Reply-To field is now called "Default Reply-To email" and says it is only used when an email has none of its own.', 'dadsfam-email-smtp' ),
     26                ),
     27        ),
    1328        array(
    1429                'version' => '2.1.6',
  • dadsfam-email-smtp/trunk/includes/admin/pages/page-logs.php

    r3733154 r3749022  
    5959                                <option value="blocked" <?php selected( $dfsmtp_status, 'blocked' ); ?>><?php esc_html_e( 'Blocked', 'dadsfam-email-smtp' ); ?></option>
    6060                                <option value="suppressed" <?php selected( $dfsmtp_status, 'suppressed' ); ?>><?php esc_html_e( 'Suppressed', 'dadsfam-email-smtp' ); ?></option>
     61                                <option value="deferred" <?php selected( $dfsmtp_status, 'deferred' ); ?>><?php esc_html_e( 'Deferred', 'dadsfam-email-smtp' ); ?></option>
    6162                        </select>
    6263                        <button type="submit" class="dfsmtp-btn dfsmtp-btn-secondary dfsmtp-btn-sm"><?php esc_html_e( 'Search', 'dadsfam-email-smtp' ); ?></button>
  • dadsfam-email-smtp/trunk/includes/admin/pages/page-settings.php

    r3642053 r3749022  
    143143                </div>
    144144                <div class="dfsmtp-field">
    145                         <label for="dfsmtp-reply-to"><?php esc_html_e( 'Reply-To email', 'dadsfam-email-smtp' ); ?></label>
    146                         <input type="email" id="dfsmtp-reply-to" name="reply_to" value="<?php echo esc_attr( $dfsmtp_s['reply_to'] ?? '' ); ?>" placeholder="<?php esc_attr_e( 'Optional — replies go here instead', 'dadsfam-email-smtp' ); ?>">
     145                        <label for="dfsmtp-reply-to"><?php esc_html_e( 'Default Reply-To email', 'dadsfam-email-smtp' ); ?></label>
     146                        <input type="email" id="dfsmtp-reply-to" name="reply_to" value="<?php echo esc_attr( $dfsmtp_s['reply_to'] ?? '' ); ?>" placeholder="<?php esc_attr_e( 'Optional', 'dadsfam-email-smtp' ); ?>">
     147                        <p class="dfsmtp-field-hint"><?php esc_html_e( 'Replies go here unless the email sets its own. Contact forms and shop emails that name who to reply to keep it, so replies reach the right person.', 'dadsfam-email-smtp' ); ?></p>
    147148                </div>
    148149                <div class="dfsmtp-field">
  • dadsfam-email-smtp/trunk/includes/admin/pages/page-test.php

    r3642053 r3749022  
    6666                                __( 'Encryption', 'dadsfam-email-smtp' )  => strtoupper( $dfsmtp_s['encryption'] ?? 'tls' ),
    6767                                __( 'From', 'dadsfam-email-smtp' )        => trim( ( $dfsmtp_s['from_name'] ?? '' ) . ' <' . ( $dfsmtp_from ? $dfsmtp_from : get_option( 'admin_email' ) ) . '>' ),
    68                                 __( 'Reply-To', 'dadsfam-email-smtp' )    => ! empty( $dfsmtp_s['reply_to'] ) ? $dfsmtp_s['reply_to'] : __( 'Not set', 'dadsfam-email-smtp' ),
     68                                __( 'Default Reply-To', 'dadsfam-email-smtp' ) => ! empty( $dfsmtp_s['reply_to'] ) ? $dfsmtp_s['reply_to'] : __( 'Not set', 'dadsfam-email-smtp' ),
    6969                        );
    7070                        foreach ( $dfsmtp_rows as $dfsmtp_k => $dfsmtp_v ) :
  • dadsfam-email-smtp/trunk/includes/class-dfsmtp-abilities.php

    r3681109 r3749022  
    248248                                                'status'   => array(
    249249                                                        'type' => 'string',
    250                                                         'enum' => array( 'sent', 'failed' ),
     250                                                        'enum' => array( 'sent', 'failed', 'blocked', 'suppressed', 'deferred' ),
    251251                                                ),
    252252                                        ),
  • dadsfam-email-smtp/trunk/includes/class-dfsmtp-logger.php

    r3714354 r3749022  
    2828class DFSMTP_Logger {
    2929
    30         const TABLE_VERSION = '4';
     30        const TABLE_VERSION = '5';
    3131        const OPT_TABLE_VER = 'dfsmtp_table_version';
    3232
    … …  
    3737         */
    3838        const RETRY_NEVER = 255;
     39
     40        /**
     41         * Emails that were held back on purpose, never sent and never failed:
     42         * the label they are logged with, and the status they get.
     43         */
     44        const HELD_BACK = array(
     45                'blocked'      => 'blocked',
     46                'suppressed'   => 'suppressed',
     47                'rate-limited' => 'deferred',
     48        );
    3949
    4050        private static ?DFSMTP_Logger $instance = null;
    … …  
    5464                        self::create_table();
    5565                        $this->maybe_upgrade_columns();
     66                        $this->upgrade_statuses();
    5667                        update_option( self::OPT_TABLE_VER, self::TABLE_VERSION );
    5768                }
    … …  
    119130        }
    120131
     132        /**
     133         * Give emails that were held back their own status (2.1.7).
     134         *
     135         * Blocked, suppressed and rate-limited emails used to be logged as
     136         * "failed". PRO's automatic retry then picked them up and sent them:
     137         * an email held back by staging mode went out after all, and a deferred
     138         * email went out twice. Their own status keeps them out of the retry
     139         * queue and out of the failure figures. Safe to run repeatedly.
     140         */
     141        private function upgrade_statuses(): void {
     142                global $wpdb;
     143                foreach ( self::HELD_BACK as $provider => $status ) {
     144                        $wpdb->query( $wpdb->prepare( "UPDATE {$this->table} SET status = %s WHERE status = 'failed' AND provider = %s", $status, $provider ) );
     145                }
     146        }
     147
    121148        private function table_exists(): bool {
    122149                global $wpdb;
    … …  
    149176                }
    150177
     178                $status = $success ? 'sent' : 'failed';
     179                if ( ! $success && isset( self::HELD_BACK[ $provider ] ) ) {
     180                        $status = self::HELD_BACK[ $provider ];
     181                }
     182
    151183                global $wpdb;
    152184                $wpdb->insert(
    153185                        $this->table,
    154186                        array(
    155                                 'status'      => $success ? 'sent' : 'failed',
     187                                'status'      => $status,
    156188                                'subject'     => mb_substr( $subject, 0, 500 ),
    157189                                'to_email'    => mb_substr( $to, 0, 500 ),
    … …  
    318350                                        "SELECT * FROM {$this->table}
    319351                                         WHERE status='failed' AND retry_count < %d AND body != '' AND to_email != ''
     352                                           AND provider NOT IN ('blocked','suppressed','rate-limited')
    320353                                           AND sent_at >= DATE_SUB( NOW(), INTERVAL %d MINUTE )
    321354                                         ORDER BY id ASC LIMIT %d",
    … …  
    332365                                "SELECT * FROM {$this->table}
    333366                                 WHERE status='failed' AND retry_count < %d AND body != '' AND to_email != ''
     367                                   AND provider NOT IN ('blocked','suppressed','rate-limited')
    334368                                 ORDER BY id ASC LIMIT %d",
    335369                                $max_retries,
  • dadsfam-email-smtp/trunk/includes/class-dfsmtp-mailer.php

    r3714354 r3749022  
    275275                        $this->apply_common_headers( $m, $s );
    276276                        do_action( 'dfsmtp_after_configure_mailer', $m, $s );
     277                        $this->note_reply_to( $m );
    277278                        return;
    278279                }
    279280
    280281                if ( empty( $s['host'] ) ) {
     282                        $this->note_reply_to( $m );
    281283                        return; // Not configured yet — leave WordPress to its default.
    282284                }
    … …  
    290292                 */
    291293                do_action( 'dfsmtp_after_configure_mailer', $m, $s );
     294
     295                $this->note_reply_to( $m );
    292296        }
    293297
    … …  
    295299         * Reply-To and Return-Path apply regardless of which SMTP account was
    296300         * selected, so they live outside apply_settings_to_mailer().
     301         *
     302         * The Reply-To setting is a default, not an override. By the time this
     303         * runs, WordPress has already put the email's own Reply-To on it, and
     304         * PHPMailer's addReplyTo() adds to that list rather than replacing it.
     305         * Adding the setting as well sent every reply to both addresses, so a
     306         * contact form's "reply to the visitor" copied the site owner into a
     307         * private conversation. The setting now only fills in for an email that
     308         * has no Reply-To of its own.
     309         *
     310         * @param mixed $m PHPMailer instance.
     311         * @param array $s Saved settings.
    297312         */
    298313        private function apply_common_headers( $m, array $s ): void {
    299                 if ( ! empty( $s['reply_to'] ) ) {
    300                         try {
    301                                 $m->addReplyTo( $s['reply_to'] );
    302                         } catch ( \Exception $e ) {
    303                                 unset( $e ); // Invalid Reply-To: skip the header, still send the email.
     314                if ( ! self::has_reply_to( $m ) ) {
     315                        // A resend keeps the Reply-To the email first went out with.
     316                        $addresses = self::split_addresses( $this->resend_reply_to() );
     317                        if ( empty( $addresses ) && ! empty( $s['reply_to'] ) ) {
     318                                $addresses = array( array( (string) $s['reply_to'], '' ) );
     319                        }
     320                        foreach ( $addresses as $address ) {
     321                                try {
     322                                        $m->addReplyTo( $address[0], $address[1] );
     323                                } catch ( \Exception $e ) {
     324                                        unset( $e ); // Invalid Reply-To: skip the header, still send the email.
     325                                }
    304326                        }
    305327                }
    … …  
    307329                        $m->Sender = $s['return_path'];
    308330                }
     331        }
     332
     333        /**
     334         * Whether the email already carries a Reply-To of its own.
     335         *
     336         * PHPMailer holds an address with an international domain name (such as
     337         * a@münchen.de) in a queue until the moment it sends, so it is not in
     338         * getReplyToAddresses() yet. Both are checked, or such an address would
     339         * still get the setting added on top of it.
     340         *
     341         * @param mixed $m PHPMailer instance.
     342         * @return bool
     343         */
     344        private static function has_reply_to( $m ): bool {
     345                return array() !== self::reply_to_addresses( $m );
     346        }
     347
     348        /**
     349         * Every Reply-To address on the email, as [ address, name ] pairs,
     350         * including any still waiting in PHPMailer's international-domain queue.
     351         *
     352         * @param mixed $m PHPMailer instance.
     353         * @return array<int,array{0:string,1:string}>
     354         */
     355        private static function reply_to_addresses( $m ): array {
     356                $out = array();
     357                if ( is_object( $m ) && method_exists( $m, 'getReplyToAddresses' ) ) {
     358                        foreach ( (array) $m->getReplyToAddresses() as $pair ) {
     359                                if ( is_array( $pair ) && ! empty( $pair[0] ) ) {
     360                                        $out[] = array( (string) $pair[0], (string) ( $pair[1] ?? '' ) );
     361                                }
     362                        }
     363                }
     364                if ( is_object( $m ) ) {
     365                        // The queue is protected, so it is read from the class's own scope.
     366                        $queued = \Closure::bind(
     367                                static function ( $mailer ): array {
     368                                        return ( property_exists( $mailer, 'ReplyToQueue' ) && is_array( $mailer->ReplyToQueue ) ) ? $mailer->ReplyToQueue : array();
     369                                },
     370                                null,
     371                                get_class( $m )
     372                        );
     373                        if ( $queued ) {
     374                                // Queue entries are [ kind, address, name ].
     375                                foreach ( (array) $queued( $m ) as $params ) {
     376                                        if ( is_array( $params ) && ! empty( $params[1] ) ) {
     377                                                $out[] = array( (string) $params[1], (string) ( $params[2] ?? '' ) );
     378                                        }
     379                                }
     380                        }
     381                }
     382                return $out;
     383        }
     384
     385        /**
     386         * Remember the Reply-To the email is actually going out with, so the log
     387         * records the truth rather than the setting.
     388         *
     389         * @param mixed $m PHPMailer instance.
     390         */
     391        private function note_reply_to( $m ): void {
     392                $this->pending_mail['_reply_to'] = self::format_addresses( self::reply_to_addresses( $m ) );
     393        }
     394
     395        /**
     396         * The Reply-To recorded for the log row being resent, if a resend is in
     397         * flight.
     398         *
     399         * @return string
     400         */
     401        private function resend_reply_to(): string {
     402                if ( $this->retry_of <= 0 ) {
     403                        return '';
     404                }
     405                $row = DFSMTP_Logger::instance()->get_log( $this->retry_of );
     406                return ( $row && ! empty( $row->reply_to ) ) ? (string) $row->reply_to : '';
     407        }
     408
     409        /**
     410         * The Reply-To to write to the log for the email being processed.
     411         *
     412         * Normally this is what the mailer actually used. When the send stopped
     413         * before the mailer was set up (blocked, suppressed, or refused by
     414         * WordPress itself), it is the Reply-To the email asked for, or failing
     415         * that the default that would have been applied.
     416         *
     417         * @param array $mail wp_mail() arguments as captured in before_send().
     418         * @param array $s    Saved settings.
     419         * @return string
     420         */
     421        private static function logged_reply_to( array $mail, array $s ): string {
     422                if ( isset( $mail['_reply_to'] ) ) {
     423                        return (string) $mail['_reply_to'];
     424                }
     425                $own = self::reply_to_from_headers( $mail['headers'] ?? '' );
     426                return '' !== $own ? $own : (string) ( $s['reply_to'] ?? '' );
     427        }
     428
     429        /**
     430         * Read the Reply-To out of wp_mail() headers, as a string or an array.
     431         *
     432         * @param mixed $headers Headers as passed to wp_mail().
     433         * @return string Comma-separated addresses, or '' when there is none.
     434         */
     435        public static function reply_to_from_headers( $headers ): string {
     436                if ( empty( $headers ) ) {
     437                        return '';
     438                }
     439                $lines = is_array( $headers ) ? $headers : explode( "\n", str_replace( "\r\n", "\n", (string) $headers ) );
     440                $found = array();
     441                foreach ( $lines as $line ) {
     442                        if ( ! is_string( $line ) || false === strpos( $line, ':' ) ) {
     443                                continue;
     444                        }
     445                        list( $name, $content ) = explode( ':', $line, 2 );
     446                        if ( 'reply-to' === strtolower( trim( $name ) ) && '' !== trim( $content ) ) {
     447                                $found = array_merge( $found, self::split_addresses( $content ) );
     448                        }
     449                }
     450                return self::format_addresses( $found );
     451        }
     452
     453        /**
     454         * Split an address list ("Ann <a@x.com>, b@y.com") into [ address, name ]
     455         * pairs. Anything that is not an email address is dropped.
     456         *
     457         * @param string $addresses Address list.
     458         * @return array<int,array{0:string,1:string}>
     459         */
     460        public static function split_addresses( string $addresses ): array {
     461                $out = array();
     462                foreach ( explode( ',', $addresses ) as $part ) {
     463                        $part = trim( $part );
     464                        if ( '' === $part ) {
     465                                continue;
     466                        }
     467                        $name    = '';
     468                        $address = $part;
     469                        if ( preg_match( '/^(.*)<([^>]+)>\s*$/', $part, $m ) ) {
     470                                $name    = trim( trim( $m[1] ), " \t\"'" );
     471                                $address = trim( $m[2] );
     472                        }
     473                        if ( false !== strpos( $address, '@' ) && ! preg_match( '/[\s<>"]/', $address ) ) {
     474                                $out[] = array( $address, $name );
     475                        }
     476                }
     477                return $out;
     478        }
     479
     480        /**
     481         * Write [ address, name ] pairs back as one readable list. Characters that
     482         * would break the list apart again are taken out of the names.
     483         *
     484         * @param array $pairs Address pairs.
     485         * @return string
     486         */
     487        private static function format_addresses( array $pairs ): string {
     488                $seen = array();
     489                $out  = array();
     490                foreach ( $pairs as $pair ) {
     491                        $address = trim( (string) ( $pair[0] ?? '' ) );
     492                        $key     = strtolower( $address );
     493                        if ( '' === $address || isset( $seen[ $key ] ) ) {
     494                                continue;
     495                        }
     496                        $seen[ $key ] = true;
     497                        $name         = trim( (string) preg_replace( '/\s+/', ' ', str_replace( array( ',', '"', '<', '>', ';' ), ' ', (string) ( $pair[1] ?? '' ) ) ) );
     498                        $out[]        = '' !== $name ? $name . ' <' . $address . '>' : $address;
     499                }
     500                return implode( ', ', $out );
    309501        }
    310502
    … …  
    596788                                                        '',
    597789                                                        $atts['message'] ?? '',
    598                                                         $s['reply_to'] ?? ''
     790                                                        self::logged_reply_to( (array) $atts, $s )
    599791                                                );
    600792                                                return true; // Silently drop.
    … …  
    617809                                '',
    618810                                $atts['message'] ?? '',
    619                                 $s['reply_to'] ?? ''
     811                                self::logged_reply_to( (array) $atts, $s )
    620812                        );
    621813                        return true; // Report success so calling plugins do not error.
    … …  
    693885                        '',
    694886                        $data['message'] ?? '',
    695                         $s['reply_to'] ?? ''
     887                        self::logged_reply_to( $this->pending_mail, $s )
    696888                );
    697889
    … …  
    707899
    708900        public function on_failed( $error ): void {
     901                // Start the next email on a fresh connection. See close_connection().
     902                self::close_connection();
     903
    709904                $logger = DFSMTP_Logger::instance();
    710905                $s      = $this->get_settings();
    … …  
    732927                        '',
    733928                        $mail['message'] ?? '',
    734                         $s['reply_to'] ?? ''
     929                        self::logged_reply_to( $mail, $s )
    735930                );
    736931
    … …  
    762957                 */
    763958                do_action( 'dfsmtp_mail_failed', $msg, $mail, $s, $log_id );
     959        }
     960
     961        /**
     962         * Close the mail server connection after a failed send.
     963         *
     964         * When a server turns an email down at MAIL FROM or after reading it
     965         * (DATA), PHPMailer throws before it says QUIT, so the connection stays
     966         * open. The next wp_mail() in the same request then reuses that open
     967         * connection without checking which server it belongs to. The failure
     968         * alert went out over the connection that had just failed, PRO's backup
     969         * server was never actually used (the email went back to the primary),
     970         * and every retry after the first in a run reused the failed session.
     971         */
     972        private static function close_connection(): void {
     973                global $phpmailer;
     974                if ( is_object( $phpmailer ) && method_exists( $phpmailer, 'smtpClose' ) ) {
     975                        try {
     976                                $phpmailer->smtpClose();
     977                        } catch ( \Throwable $e ) {
     978                                unset( $e ); // Already gone: nothing left to close.
     979                        }
     980                }
    764981        }
    765982
    … …  
    10071224                        $this->begin_retry( (int) $log->id );
    10081225                }
     1226
     1227                // The resend keeps the Reply-To the email had, so replies to a contact
     1228                // form enquiry still reach the person who wrote it.
     1229                $headers = array( 'Content-Type: text/html; charset=UTF-8' );
     1230                if ( '' !== trim( (string) ( $log->reply_to ?? '' ) ) ) {
     1231                        $headers[] = 'Reply-To: ' . $log->reply_to;
     1232                }
     1233
    10091234                $this->internal_send = true;
    10101235                $result              = wp_mail(
    … …  
    10121237                        $log->subject,
    10131238                        $log->body,
    1014                         array( 'Content-Type: text/html; charset=UTF-8' )
     1239                        $headers
    10151240                );
    10161241                $this->internal_send = false;
  • dadsfam-email-smtp/trunk/includes/class-dfsmtp-operations.php

    r3681109 r3749022  
    344344                $search   = isset( $input['search'] ) ? sanitize_text_field( (string) $input['search'] ) : '';
    345345                $status   = isset( $input['status'] ) ? sanitize_key( (string) $input['status'] ) : '';
    346                 if ( ! in_array( $status, array( '', 'sent', 'failed' ), true ) ) {
     346                if ( ! in_array( $status, array( '', 'sent', 'failed', 'blocked', 'suppressed', 'deferred' ), true ) ) {
    347347                        $status = '';
    348348                }
  • dadsfam-email-smtp/trunk/languages/dadsfam-email-smtp.pot

    r3733154 r3749022  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: DadsFam SMTP 2.1.6\n"
     5"Project-Id-Version: DadsFam SMTP 2.1.7\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/dadsfam-email-smtp\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
    … …  
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2026-10-07T16:38:08+00:00\n"
     12"POT-Creation-Date: 2026-10-15T16:01:29+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.12.0\n"
    … …  
    2121#: includes/admin/pages/page-addons.php:14
    2222#: includes/admin/pages/page-analytics.php:17
    23 #: includes/admin/pages/page-changelog.php:267
     23#: includes/admin/pages/page-changelog.php:282
    2424#: includes/admin/pages/page-logs.php:46
    2525#: includes/admin/pages/page-settings.php:17
    … …  
    8080#: includes/admin/class-dfsmtp-admin.php:77
    8181#: includes/admin/class-dfsmtp-admin.php:935
    82 #: includes/admin/pages/page-changelog.php:267
     82#: includes/admin/pages/page-changelog.php:282
    8383msgid "Changelog"
    8484msgstr ""
    … …  
    9797
    9898#: includes/admin/class-dfsmtp-admin.php:114
    99 #: includes/admin/pages/page-logs.php:195
     99#: includes/admin/pages/page-logs.php:196
    100100msgid "Email"
    101101msgstr ""
    … …  
    118118
    119119#: includes/admin/class-dfsmtp-admin.php:119
    120 #: includes/admin/pages/page-logs.php:103
     120#: includes/admin/pages/page-logs.php:104
    121121msgid "To"
    122122msgstr ""
    … …  
    128128
    129129#: includes/admin/class-dfsmtp-admin.php:121
    130 #: includes/admin/pages/page-test.php:68
    131130msgid "Reply-To"
    132131msgstr ""
    133132
    134133#: includes/admin/class-dfsmtp-admin.php:122
    135 #: includes/admin/pages/page-logs.php:101
     134#: includes/admin/pages/page-logs.php:102
    136135msgid "Status"
    137136msgstr ""
    … …  
    139138#: includes/admin/class-dfsmtp-admin.php:123
    140139#: includes/admin/pages/page-analytics.php:104
    141 #: includes/admin/pages/page-logs.php:104
     140#: includes/admin/pages/page-logs.php:105
    142141#: includes/admin/pages/page-settings.php:72
    143142msgid "Connection"
    … …  
    145144
    146145#: includes/admin/class-dfsmtp-admin.php:124
    147 #: includes/admin/pages/page-logs.php:109
     146#: includes/admin/pages/page-logs.php:110
    148147msgid "Sent at"
    149148msgstr ""
    … …  
    162161
    163162#: includes/admin/class-dfsmtp-admin.php:128
    164 #: includes/admin/pages/page-logs.php:196
     163#: includes/admin/pages/page-logs.php:197
    165164msgid "Close"
    166165msgstr ""
    … …  
    375374
    376375#: includes/admin/pages/page-analytics.php:59
    377 #: includes/admin/pages/page-logs.php:92
     376#: includes/admin/pages/page-logs.php:93
    378377msgid "Send a test email"
    379378msgstr ""
    … …  
    404403
    405404#: includes/admin/pages/page-changelog.php:17
     405msgid "Replies go to the right person"
     406msgstr ""
     407
     408#: includes/admin/pages/page-changelog.php:19
     409msgid "Fixed: the Reply-To setting was added to every email, even one that already said who to reply to. Mail programs then replied to both addresses, so when someone answered a contact-form enquiry, the site owner was copied in on a private conversation. The setting is now a default: it is only used when an email has no Reply-To of its own. Contact forms, enquiry forms and WooCommerce emails keep theirs."
     410msgstr ""
     411
     412#: includes/admin/pages/page-changelog.php:20
     413msgid "Fixed: the email log showed the Reply-To setting rather than the Reply-To the email actually went out with. It now records the real one."
     414msgstr ""
     415
     416#: includes/admin/pages/page-changelog.php:21
     417msgid "Fixed: resending an email from the log, and PRO's automatic retry, keep the email's original Reply-To."
     418msgstr ""
     419
     420#: includes/admin/pages/page-changelog.php:22
     421msgid "Fixed: after one email failed, the next email sent at the same moment went out over the same broken connection and failed too. That included the \"delivery failure\" alert, PRO's backup server (the email went back to the main server instead) and every PRO retry after the first. Each email now starts a fresh connection after a failure."
     422msgstr ""
     423
     424#: includes/admin/pages/page-changelog.php:23
     425msgid "Fixed: emails held back on purpose (by staging mode, the suppression list or PRO's hourly limit) were logged as \"failed\", so PRO's automatic retry could send them anyway. An email held back on a staging site could go out once blocking was switched off, and a deferred email could go out twice. They now have their own status (Blocked, Suppressed or Deferred), are never retried and no longer count as failures. Existing log entries are corrected once when you update."
     426msgstr ""
     427
     428#: includes/admin/pages/page-changelog.php:24
     429msgid "Fixed: opening the Settings screen put the provider's default port and encryption into the form, so saving any other setting (the From name, say) could quietly change how the site connects to its mail server. The form now shows what is saved, and only fills in a provider's defaults when you choose a provider."
     430msgstr ""
     431
     432#: includes/admin/pages/page-changelog.php:25
     433msgid "Changed: the Reply-To field is now called \"Default Reply-To email\" and says it is only used when an email has none of its own."
     434msgstr ""
     435
     436#: includes/admin/pages/page-changelog.php:32
    406437msgid "The email log shows the email, every time"
    407438msgstr ""
    408439
    409 #: includes/admin/pages/page-changelog.php:19
     440#: includes/admin/pages/page-changelog.php:34
    410441msgid "Fixed: opening an email in the log could show an empty white box instead of the email, so you had to reload the page, sometimes many times, before it showed. The email is now drawn fresh each time you open one, and it shows every time."
    411442msgstr ""
    412443
    413 #: includes/admin/pages/page-changelog.php:20
     444#: includes/admin/pages/page-changelog.php:35
    414445msgid "Fixed: the dark background behind an open email covered only part of the screen."
    415446msgstr ""
    416447
    417 #: includes/admin/pages/page-changelog.php:21
     448#: includes/admin/pages/page-changelog.php:36
    418449msgid "Fixed: with PRO's open tracking on, looking at an email in the log counted as the person opening it, so every look pushed the open figures up. Looking no longer counts."
    419450msgstr ""
    420451
    421 #: includes/admin/pages/page-changelog.php:22
     452#: includes/admin/pages/page-changelog.php:37
    422453msgid "Improved: the window opens the moment you click View and says it is loading. If the email cannot be loaded, because the page has been open too long, your login has timed out or the connection dropped, it says so in plain words with a button to try again or reload the page. Before, nothing happened at all."
    423454msgstr ""
    424455
    425 #: includes/admin/pages/page-changelog.php:23
     456#: includes/admin/pages/page-changelog.php:38
    426457msgid "Improved: links in the email open in a new tab, plain-text emails keep their line breaks, and the Escape key closes the window."
    427458msgstr ""
    428459
    429 #: includes/admin/pages/page-changelog.php:24
     460#: includes/admin/pages/page-changelog.php:39
    430461msgid "Improved: this screen shows the newest release at the top, PRO releases included."
    431462msgstr ""
    432463
    433 #: includes/admin/pages/page-changelog.php:31
     464#: includes/admin/pages/page-changelog.php:46
    434465msgid "One failed email stays one failed email"
    435466msgstr ""
    436467
    437 #: includes/admin/pages/page-changelog.php:33
     468#: includes/admin/pages/page-changelog.php:48
    438469msgid "Fixed: with PRO's automatic retry switched on, one failed email could turn into dozens. Each retry was logged as a brand-new email, that copy failed too and was retried in its turn, and every failure sent you another \"delivery failure\" alert. A retry now updates the email's original log entry, so it is tried the number of times you set and then it stops."
    439470msgstr ""
    440471
    441 #: includes/admin/pages/page-changelog.php:34
     472#: includes/admin/pages/page-changelog.php:49
    442473msgid "Fixed: an email with no recipient address, such as an invoice for an order with no email on it, was queued for retry even though no retry could ever deliver it. It is now logged once, you get one alert that says there was nobody to send it to, and it is never retried."
    443474msgstr ""
    444475
    445 #: includes/admin/pages/page-changelog.php:35
     476#: includes/admin/pages/page-changelog.php:50
    446477msgid "Fixed: resending a failed email from the log now updates that entry, so an email you have already resent by hand can never be sent a second time by the retry job."
    447478msgstr ""
    448479
    449 #: includes/admin/pages/page-changelog.php:36
     480#: includes/admin/pages/page-changelog.php:51
    450481msgid "Changed: the Retries column in the email log shows a dash for an email that will not be retried."
    451482msgstr ""
    452483
    453 #: includes/admin/pages/page-changelog.php:43
     484#: includes/admin/pages/page-changelog.php:58
    454485msgid "WordPress.org housekeeping"
    455486msgstr ""
    456487
    457 #: includes/admin/pages/page-changelog.php:45
     488#: includes/admin/pages/page-changelog.php:60
    458489msgid "Tidied: numbers read from the settings forms and the log screen are now cleaned exactly the way WordPress.org asks. Nothing changes in how the plugin works."
    459490msgstr ""
    460491
    461 #: includes/admin/pages/page-changelog.php:46
     492#: includes/admin/pages/page-changelog.php:61
    462493msgid "Added: a translation template, so the plugin can be translated."
    463494msgstr ""
    464495
    465 #: includes/admin/pages/page-changelog.php:53
     496#: includes/admin/pages/page-changelog.php:68
    466497msgid "Emails other plugins stop now stay stopped"
    467498msgstr ""
    468499
    469 #: includes/admin/pages/page-changelog.php:55
     500#: includes/admin/pages/page-changelog.php:70
    470501msgid "Fixed: if another plugin had already stopped an email, for example a test-mode switch on a site that is not live yet, DadsFam SMTP could still send it whenever its own blocking mode was off. It now always respects that decision. Normal sending is unchanged."
    471502msgstr ""
    472503
    473 #: includes/admin/pages/page-changelog.php:56
     504#: includes/admin/pages/page-changelog.php:71
    474505msgid "Tidied: removed an old translation-loading call. WordPress has loaded plugin translations by itself since version 4.6."
    475506msgstr ""
    476507
    477 #: includes/admin/pages/page-changelog.php:63
     508#: includes/admin/pages/page-changelog.php:78
    478509msgid "Plugin page screenshots"
    479510msgstr ""
    480511
    481 #: includes/admin/pages/page-changelog.php:65
     512#: includes/admin/pages/page-changelog.php:80
    482513msgid "Added screenshots to the WordPress.org plugin page, so the settings, deliverability score and email log can be seen before installing. Nothing in the plugin itself changed."
    483514msgstr ""
    484515
    485 #: includes/admin/pages/page-changelog.php:72
     516#: includes/admin/pages/page-changelog.php:87
    486517msgid "More AI abilities, for when mail goes wrong"
    487518msgstr ""
    488519
    489 #: includes/admin/pages/page-changelog.php:74
     520#: includes/admin/pages/page-changelog.php:89
    490521msgid "Added: an assistant can now open a single log entry in full — who it went to, which provider carried it, and the exact error the server gave back."
    491522msgstr ""
    492523
    493 #: includes/admin/pages/page-changelog.php:75
     524#: includes/admin/pages/page-changelog.php:90
    494525msgid "Privacy: the stored message body and raw headers are never returned to an assistant. The body is kept only so PRO can retry a failed send."
    495526msgstr ""
    496527
    497 #: includes/admin/pages/page-changelog.php:76
     528#: includes/admin/pages/page-changelog.php:91
    498529msgid "Added: list the failed emails still waiting to be retried, with the error that stopped each one. Retrying itself remains a PRO feature."
    499530msgstr ""
    500531
    501 #: includes/admin/pages/page-changelog.php:77
     532#: includes/admin/pages/page-changelog.php:92
    502533msgid "Added: export this site's mail configuration and apply it to another site. No password is ever included, so each site still needs its own credential set before it can send."
    503534msgstr ""
    504535
    505 #: includes/admin/pages/page-changelog.php:78
     536#: includes/admin/pages/page-changelog.php:93
    506537msgid "Added: a single support report gathering versions, configuration, the SPF, DKIM and DMARC checks and recent sending statistics."
    507538msgstr ""
    508539
    509 #: includes/admin/pages/page-changelog.php:79
    510 #: includes/admin/pages/page-changelog.php:100
     540#: includes/admin/pages/page-changelog.php:94
     541#: includes/admin/pages/page-changelog.php:115
     542#: includes/admin/pages/page-changelog.php:125
     543msgid "No changes to how the plugin sends, logs or tests email."
     544msgstr ""
     545
     546#: includes/admin/pages/page-changelog.php:101
     547msgid "Packaging fix"
     548msgstr ""
     549
     550#: includes/admin/pages/page-changelog.php:103
     551msgid "Packaging: trimmed the plugin tags to the five WordPress.org allows. The extra \"ai\" and \"mcp\" tags were being ignored on import, so they have been removed. No functional change."
     552msgstr ""
     553
    511554#: includes/admin/pages/page-changelog.php:110
    512 msgid "No changes to how the plugin sends, logs or tests email."
    513 msgstr ""
    514 
    515 #: includes/admin/pages/page-changelog.php:86
    516 msgid "Packaging fix"
    517 msgstr ""
    518 
    519 #: includes/admin/pages/page-changelog.php:88
    520 msgid "Packaging: trimmed the plugin tags to the five WordPress.org allows. The extra \"ai\" and \"mcp\" tags were being ignored on import, so they have been removed. No functional change."
    521 msgstr ""
    522 
    523 #: includes/admin/pages/page-changelog.php:95
    524555msgid "AI assistant support (WordPress Abilities API)"
    525556msgstr ""
    526557
    527 #: includes/admin/pages/page-changelog.php:97
     558#: includes/admin/pages/page-changelog.php:112
    528559msgid "Added: if you connect an AI assistant to your site through an MCP plugin such as WPVibe, it can now read your SMTP stats, logs and settings, check deliverability (SPF, DKIM, DMARC), send a test email and change your configuration for you, through the WordPress Abilities API (WordPress 6.9 and newer)."
    529560msgstr ""
    530561
    531 #: includes/admin/pages/page-changelog.php:98
     562#: includes/admin/pages/page-changelog.php:113
    532563msgid "Security: every AI action requires administrator access, and your SMTP password is never exposed to the assistant. Read actions report only whether a password is set."
    533564msgstr ""
    534565
    535 #: includes/admin/pages/page-changelog.php:99
     566#: includes/admin/pages/page-changelog.php:114
    536567msgid "On WordPress versions without the Abilities API, nothing changes and the plugin works exactly as before."
    537568msgstr ""
    538569
    539 #: includes/admin/pages/page-changelog.php:107
     570#: includes/admin/pages/page-changelog.php:122
    540571msgid "A word about PRO"
    541572msgstr ""
    542573
    543 #: includes/admin/pages/page-changelog.php:109
     574#: includes/admin/pages/page-changelog.php:124
    544575msgid "Added: a plain-English note in the readme explaining what stays free, why the optional PRO add-on exists and what it does. No features were moved behind a paywall."
    545576msgstr ""
    546577
    547 #: includes/admin/pages/page-changelog.php:117
     578#: includes/admin/pages/page-changelog.php:132
    548579msgid "Uninstall cleanup made precise and multisite-aware"
    549580msgstr ""
    550581
    551 #: includes/admin/pages/page-changelog.php:119
     582#: includes/admin/pages/page-changelog.php:134
    552583msgid "Changed: uninstall now removes only this plugin's own data, addressed by exact name (its three options, its scheduled event and its log table), instead of sweeping the options table for anything sharing the \"dfsmtp_\" prefix. Data belonging to a separate add-on that happens to use the same prefix is left alone."
    553584msgstr ""
    554585
    555 #: includes/admin/pages/page-changelog.php:120
     586#: includes/admin/pages/page-changelog.php:135
    556587msgid "Changed: uninstall now runs on every site of a multisite network rather than only the current one. The per-site \"keep data on uninstall\" preference is still honoured for each site."
    557588msgstr ""
    558589
    559 #: includes/admin/pages/page-changelog.php:127
     590#: includes/admin/pages/page-changelog.php:142
    560591msgid "Import hardening and directory compliance"
    561592msgstr ""
    562593
    563 #: includes/admin/pages/page-changelog.php:129
     594#: includes/admin/pages/page-changelog.php:144
    564595msgid "Security: an imported configuration file is cleaned key by key against a list of the settings this plugin owns, with each value checked for what it is allowed to contain"
    565596msgstr ""
    566597
    567 #: includes/admin/pages/page-changelog.php:130
     598#: includes/admin/pages/page-changelog.php:145
    568599msgid "Added: an External services section to the readme setting out what is sent to your SMTP provider, when and where"
    569600msgstr ""
    570601
    571 #: includes/admin/pages/page-changelog.php:131
     602#: includes/admin/pages/page-changelog.php:146
    572603msgid "Fixed: the plugin header pointed at a page that did not exist"
    573604msgstr ""
    574605
    575 #: includes/admin/pages/page-changelog.php:132
     606#: includes/admin/pages/page-changelog.php:147
    576607msgid "Changed: the text domain now matches the plugin slug so the community translation tools can pick it up"
    577608msgstr ""
    578609
    579 #: includes/admin/pages/page-changelog.php:139
     610#: includes/admin/pages/page-changelog.php:154
    580611msgid "Stored password hardening"
    581612msgstr ""
    582613
    583 #: includes/admin/pages/page-changelog.php:141
     614#: includes/admin/pages/page-changelog.php:156
    584615msgid "Security: SMTP passwords are stored with authenticated AES-256-GCM, so a tampered value is detected instead of silently decrypting to something else. Passwords saved by earlier versions are read transparently and keep working."
    585616msgstr ""
    586617
    587 #: includes/admin/pages/page-changelog.php:142
     618#: includes/admin/pages/page-changelog.php:157
    588619msgid "Security: removed the fallback that could store a password as plain text or base64 if encryption failed. The save is now refused with a clear message instead."
    589620msgstr ""
    590621
    591 #: includes/admin/pages/page-changelog.php:143
     622#: includes/admin/pages/page-changelog.php:158
    592623msgid "Changed: uninstall clears everything under this plugin's own prefix generically rather than listing add-on option names."
    593624msgstr ""
    594625
    595 #: includes/admin/pages/page-changelog.php:150
     626#: includes/admin/pages/page-changelog.php:165
    596627msgid "Accurate WooCommerce log labelling"
    597628msgstr ""
    598629
    599 #: includes/admin/pages/page-changelog.php:152
     630#: includes/admin/pages/page-changelog.php:167
    600631msgid "Fixed: WooCommerce email types were detected by searching the subject line, so any email whose subject contained a word like \"Completed\" or \"Invoice\" was logged as a WooCommerce order email. The type now comes from WooCommerce's own email object."
    601632msgstr ""
    602633
    603 #: includes/admin/pages/page-changelog.php:153
     634#: includes/admin/pages/page-changelog.php:168
    604635msgid "Fixed: failed sends now record the WooCommerce email type, so a failed order email can be told apart from other failures."
    605636msgstr ""
    606637
    607 #: includes/admin/pages/page-changelog.php:160
     638#: includes/admin/pages/page-changelog.php:175
    608639msgid "Version alignment"
    609640msgstr ""
    610641
    611 #: includes/admin/pages/page-changelog.php:162
     642#: includes/admin/pages/page-changelog.php:177
    612643msgid "Version number aligned with the separate PRO add-on. No functional change to this plugin."
    613644msgstr ""
    614645
    615 #: includes/admin/pages/page-changelog.php:169
     646#: includes/admin/pages/page-changelog.php:184
    616647msgid "PHP 8.4 readiness"
    617648msgstr ""
    618649
    619 #: includes/admin/pages/page-changelog.php:171
     650#: includes/admin/pages/page-changelog.php:186
    620651msgid "Fixed: the connection tester used an implicitly nullable parameter, deprecated in PHP 8.4."
    621652msgstr ""
    622653
    623 #: includes/admin/pages/page-changelog.php:172
     654#: includes/admin/pages/page-changelog.php:187
    624655msgid "Fixed: CSV export passes the fputcsv() escape argument explicitly, producing RFC 4180 output that spreadsheets read correctly."
    625656msgstr ""
    626657
    627 #: includes/admin/pages/page-changelog.php:173
     658#: includes/admin/pages/page-changelog.php:188
    628659msgid "Verified against PHP 8.0 through 8.4 and WordPress 7.0."
    629660msgstr ""
    630661
    631 #: includes/admin/pages/page-changelog.php:180
     662#: includes/admin/pages/page-changelog.php:195
    632663msgid "Core / add-on split and three delivery fixes"
    633664msgstr ""
    634665
    635 #: includes/admin/pages/page-changelog.php:182
     666#: includes/admin/pages/page-changelog.php:197
    636667msgid "Fixed: a failed delivery could trigger an unbounded chain of failure-alert emails, exhausting PHP memory and hammering the mail server. The alert path is now guarded against re-entry."
    637668msgstr ""
    638669
    639 #: includes/admin/pages/page-changelog.php:183
     670#: includes/admin/pages/page-changelog.php:198
    640671msgid "Fixed: the SMTP connection test now terminates every command with CRLF as RFC 5321 requires. Strict servers such as Microsoft 365 no longer hang or reject the handshake."
    641672msgstr ""
    642673
    643 #: includes/admin/pages/page-changelog.php:184
     674#: includes/admin/pages/page-changelog.php:199
    644675msgid "Fixed: the suppression list now matches whole addresses and domains instead of loose substrings, so a short entry can no longer block unrelated recipients."
    645676msgstr ""
    646677
    647 #: includes/admin/pages/page-changelog.php:185
     678#: includes/admin/pages/page-changelog.php:200
    648679msgid "Fixed: uninstall now removes every option the plugin creates, including the log table version marker."
    649680msgstr ""
    650681
    651 #: includes/admin/pages/page-changelog.php:186
     682#: includes/admin/pages/page-changelog.php:201
    652683msgid "Fixed: the log table is created with all columns present rather than relying on a later migration."
    653684msgstr ""
    654685
    655 #: includes/admin/pages/page-changelog.php:187
     686#: includes/admin/pages/page-changelog.php:202
    656687msgid "Changed: email logging is now unlimited for everyone, with retention controlled by a \"keep logs for N days\" setting instead of a fixed entry cap."
    657688msgstr ""
    658689
    659 #: includes/admin/pages/page-changelog.php:188
     690#: includes/admin/pages/page-changelog.php:203
    660691msgid "Changed: CSV export and the full email body viewer are available on every site."
    661692msgstr ""
    662693
    663 #: includes/admin/pages/page-changelog.php:189
     694#: includes/admin/pages/page-changelog.php:204
    664695msgid "Changed: the plugin no longer overrides the WordPress core \"weekly\" cron schedule."
    665696msgstr ""
    666697
    667 #: includes/admin/pages/page-changelog.php:190
     698#: includes/admin/pages/page-changelog.php:205
    668699msgid "New: a documented hook API so add-ons can extend the send pipeline and admin screens cleanly."
    669700msgstr ""
    670701
    671 #: includes/admin/pages/page-changelog.php:191
     702#: includes/admin/pages/page-changelog.php:206
    672703msgid "New: admin styles are served from a proper enqueued stylesheet rather than an inline style block."
    673704msgstr ""
    674705
    675 #: includes/admin/pages/page-changelog.php:192
     706#: includes/admin/pages/page-changelog.php:207
    676707msgid "Upgrading from 1.6.x keeps every setting and log entry — the folder name and option keys are unchanged."
    677708msgstr ""
    678709
    679 #: includes/admin/pages/page-changelog.php:199
     710#: includes/admin/pages/page-changelog.php:214
    680711msgid "Routing and logging refinements"
    681712msgstr ""
    682713
    683 #: includes/admin/pages/page-changelog.php:201
     714#: includes/admin/pages/page-changelog.php:216
    684715msgid "Routing rules with an empty match value are skipped instead of capturing every email."
    685716msgstr ""
    686717
    687 #: includes/admin/pages/page-changelog.php:202
     718#: includes/admin/pages/page-changelog.php:217
    688719msgid "WooCommerce email detection moved to a hook-based flag consumed by a single outgoing email."
    689720msgstr ""
    690721
    691 #: includes/admin/pages/page-changelog.php:203
     722#: includes/admin/pages/page-changelog.php:218
    692723msgid "The log list view no longer selects the body column, preventing memory exhaustion on large logs."
    693724msgstr ""
    694725
    695 #: includes/admin/pages/page-changelog.php:210
     726#: includes/admin/pages/page-changelog.php:225
    696727msgid "Email health score"
    697728msgstr ""
    698729
    699 #: includes/admin/pages/page-changelog.php:212
     730#: includes/admin/pages/page-changelog.php:227
    700731msgid "New deliverability score combining DNS authentication, configuration and real send history."
    701732msgstr ""
    702733
    703 #: includes/admin/pages/page-changelog.php:213
     734#: includes/admin/pages/page-changelog.php:228
    704735msgid "Dashboard widget showing sent, failed and success rate at a glance."
    705736msgstr ""
    706737
    707 #: includes/admin/pages/page-changelog.php:220
     738#: includes/admin/pages/page-changelog.php:235
    708739msgid "Backup, migrate and setup wizard"
    709740msgstr ""
    710741
    711 #: includes/admin/pages/page-changelog.php:222
     742#: includes/admin/pages/page-changelog.php:237
    712743msgid "Export and import your configuration as JSON. Passwords are never included."
    713744msgstr ""
    714745
    715 #: includes/admin/pages/page-changelog.php:223
     746#: includes/admin/pages/page-changelog.php:238
    716747msgid "Guided first-run setup for new installations."
    717748msgstr ""
    718749
    719 #: includes/admin/pages/page-changelog.php:230
     750#: includes/admin/pages/page-changelog.php:245
    720751msgid "Delivery controls"
    721752msgstr ""
    722753
    723 #: includes/admin/pages/page-changelog.php:232
     754#: includes/admin/pages/page-changelog.php:247
    724755msgid "Blocking mode stops all outgoing email on staging copies while still logging every attempt."
    725756msgstr ""
    726757
    727 #: includes/admin/pages/page-changelog.php:233
     758#: includes/admin/pages/page-changelog.php:248
    728759msgid "Suppression list for addresses and domains that must never be contacted."
    729760msgstr ""
    730761
    731 #: includes/admin/pages/page-changelog.php:234
     762#: includes/admin/pages/page-changelog.php:249
    732763msgid "Deliverability checker for SPF, DKIM, DMARC and MX records."
    733764msgstr ""
    734765
    735 #: includes/admin/pages/page-changelog.php:241
     766#: includes/admin/pages/page-changelog.php:256
    736767msgid "First release"
    737768msgstr ""
    738769
    739 #: includes/admin/pages/page-changelog.php:243
     770#: includes/admin/pages/page-changelog.php:258
    740771msgid "SMTP delivery with 13 pre-configured providers and AES-256-CBC encrypted credentials."
    741772msgstr ""
    742773
    743 #: includes/admin/pages/page-changelog.php:244
     774#: includes/admin/pages/page-changelog.php:259
    744775msgid "Full email logging with one-click resend."
    745776msgstr ""
    746777
    747 #: includes/admin/pages/page-changelog.php:245
     778#: includes/admin/pages/page-changelog.php:260
    748779msgid "Live send test with real SMTP diagnostic output."
    749780msgstr ""
    750781
    751 #: includes/admin/pages/page-changelog.php:271
     782#: includes/admin/pages/page-changelog.php:286
    752783msgid "Release History"
    753784msgstr ""
    754785
    755786#. translators: %s: current plugin version
    756 #: includes/admin/pages/page-changelog.php:276
     787#: includes/admin/pages/page-changelog.php:291
    757788#, php-format
    758789msgid "You are running version %s."
    … …  
    775806msgstr ""
    776807
    777 #: includes/admin/pages/page-logs.php:62
     808#: includes/admin/pages/page-logs.php:61
     809msgid "Deferred"
     810msgstr ""
     811
     812#: includes/admin/pages/page-logs.php:63
    778813msgid "Search"
    779814msgstr ""
    780815
    781 #: includes/admin/pages/page-logs.php:64
     816#: includes/admin/pages/page-logs.php:65
    782817msgid "Clear"
    783818msgstr ""
    784819
    785 #: includes/admin/pages/page-logs.php:68
     820#: includes/admin/pages/page-logs.php:69
    786821msgid "Export CSV"
    787822msgstr ""
    788823
    789 #: includes/admin/pages/page-logs.php:69
     824#: includes/admin/pages/page-logs.php:70
    790825msgid "Clear all"
    791826msgstr ""
    792827
    793828#. translators: %s: search term
    794 #: includes/admin/pages/page-logs.php:83
     829#: includes/admin/pages/page-logs.php:84
    795830#, php-format
    796831msgid "No logs matching %s."
    797832msgstr ""
    798833
    799 #: includes/admin/pages/page-logs.php:87
     834#: includes/admin/pages/page-logs.php:88
    800835msgid "No email logs yet."
    801836msgstr ""
    802837
    803 #: includes/admin/pages/page-logs.php:93
     838#: includes/admin/pages/page-logs.php:94
    804839msgid "to see entries appear here."
    805840msgstr ""
    806841
    807 #: includes/admin/pages/page-logs.php:102
     842#: includes/admin/pages/page-logs.php:103
    808843msgid "Subject"
    809844msgstr ""
    810845
    811 #: includes/admin/pages/page-logs.php:108
     846#: includes/admin/pages/page-logs.php:109
    812847msgid "Retries"
    813848msgstr ""
    814849
    815 #: includes/admin/pages/page-logs.php:110
     850#: includes/admin/pages/page-logs.php:111
    816851msgid "Actions"
    817852msgstr ""
    818853
    819 #: includes/admin/pages/page-logs.php:139
     854#: includes/admin/pages/page-logs.php:140
    820855msgid "Not retried: this email has no valid recipient."
    821856msgstr ""
    822857
    823 #: includes/admin/pages/page-logs.php:143
     858#: includes/admin/pages/page-logs.php:144
    824859msgid "View"
    825860msgstr ""
    826861
    827 #: includes/admin/pages/page-logs.php:144
     862#: includes/admin/pages/page-logs.php:145
    828863msgid "Resend"
    829864msgstr ""
    830865
    831 #: includes/admin/pages/page-logs.php:145
     866#: includes/admin/pages/page-logs.php:146
    832867msgid "Delete"
    833868msgstr ""
    834869
    835870#. translators: %s: total number of log entries
    836 #: includes/admin/pages/page-logs.php:183
     871#: includes/admin/pages/page-logs.php:184
    837872#, php-format
    838873msgid "%s entries"
    … …  
    954989
    955990#: includes/admin/pages/page-settings.php:145
    956 msgid "Reply-To email"
     991msgid "Default Reply-To email"
    957992msgstr ""
    958993
    959994#: includes/admin/pages/page-settings.php:146
    960 msgid "Optional — replies go here instead"
    961 msgstr ""
    962 
    963 #: includes/admin/pages/page-settings.php:149
     995msgid "Optional"
     996msgstr ""
     997
     998#: includes/admin/pages/page-settings.php:147
     999msgid "Replies go here unless the email sets its own. Contact forms and shop emails that name who to reply to keep it, so replies reach the right person."
     1000msgstr ""
     1001
     1002#: includes/admin/pages/page-settings.php:150
    9641003msgid "Return-Path / envelope sender"
    9651004msgstr ""
    9661005
    967 #: includes/admin/pages/page-settings.php:150
     1006#: includes/admin/pages/page-settings.php:151
    9681007msgid "Optional — used for bounce tracking"
    9691008msgstr ""
    9701009
    971 #: includes/admin/pages/page-settings.php:151
     1010#: includes/admin/pages/page-settings.php:152
    9721011msgid "Must match your SMTP sender domain."
    9731012msgstr ""
    9741013
    975 #: includes/admin/pages/page-settings.php:158
     1014#: includes/admin/pages/page-settings.php:159
    9761015msgid "Logging &amp; Alerts"
    9771016msgstr ""
    9781017
    979 #: includes/admin/pages/page-settings.php:162
     1018#: includes/admin/pages/page-settings.php:163
    9801019msgid "Enable email logging"
    9811020msgstr ""
    9821021
    983 #: includes/admin/pages/page-settings.php:164
     1022#: includes/admin/pages/page-settings.php:165
    9841023msgid "Every send is recorded in full, with no entry limit."
    9851024msgstr ""
    9861025
    987 #: includes/admin/pages/page-settings.php:167
     1026#: includes/admin/pages/page-settings.php:168
    9881027msgid "Keep logs for (days)"
    9891028msgstr ""
    9901029
    991 #: includes/admin/pages/page-settings.php:169
     1030#: includes/admin/pages/page-settings.php:170
    9921031msgid "Older entries are purged daily. Set to 0 to keep everything forever."
    9931032msgstr ""
    9941033
    995 #: includes/admin/pages/page-settings.php:174
     1034#: includes/admin/pages/page-settings.php:175
    9961035msgid "Email me when a delivery fails"
    9971036msgstr ""
    9981037
    9991038#. translators: %s: admin email address
    1000 #: includes/admin/pages/page-settings.php:180
     1039#: includes/admin/pages/page-settings.php:181
    10011040#, php-format
    10021041msgid "Alerts are sent to %s."
    10031042msgstr ""
    10041043
    1005 #: includes/admin/pages/page-settings.php:189
     1044#: includes/admin/pages/page-settings.php:190
    10061045msgid "Delivery Controls"
    10071046msgstr ""
    10081047
    1009 #: includes/admin/pages/page-settings.php:193
     1048#: includes/admin/pages/page-settings.php:194
    10101049msgid "Block all outgoing email (staging mode)"
    10111050msgstr ""
    10121051
    1013 #: includes/admin/pages/page-settings.php:195
     1052#: includes/admin/pages/page-settings.php:196
    10141053msgid "Nothing is delivered, but every attempt is still logged. Ideal for staging and development copies of a live site."
    10151054msgstr ""
    10161055
    1017 #: includes/admin/pages/page-settings.php:198
     1056#: includes/admin/pages/page-settings.php:199
    10181057msgid "Suppression list"
    10191058msgstr ""
    10201059
    1021 #: includes/admin/pages/page-settings.php:200
     1060#: includes/admin/pages/page-settings.php:201
    10221061msgid "One entry per line. Use a full address to block that address, or start with @ to block a whole domain."
    10231062msgstr ""
    10241063
    1025 #: includes/admin/pages/page-settings.php:206
     1064#: includes/admin/pages/page-settings.php:207
    10261065msgid "Advanced"
    10271066msgstr ""
    10281067
    1029 #: includes/admin/pages/page-settings.php:208
     1068#: includes/admin/pages/page-settings.php:209
    10301069msgid "Default DKIM selector"
    10311070msgstr ""
    10321071
    1033 #: includes/admin/pages/page-settings.php:210
     1072#: includes/admin/pages/page-settings.php:211
    10341073msgid "Used by the deliverability checker and health score. cPanel: default · Microsoft 365: selector1 · Google Workspace: google · SendGrid: s1"
    10351074msgstr ""
    10361075
    1037 #: includes/admin/pages/page-settings.php:214
     1076#: includes/admin/pages/page-settings.php:215
    10381077msgid "Keep all settings and logs if this plugin is deleted"
    10391078msgstr ""
    10401079
    1041 #: includes/admin/pages/page-settings.php:228
     1080#: includes/admin/pages/page-settings.php:229
    10421081msgid "Save settings"
    10431082msgstr ""
    … …  
    10971136#: includes/admin/pages/page-test.php:65
    10981137msgid "Not configured"
     1138msgstr ""
     1139
     1140#: includes/admin/pages/page-test.php:68
     1141msgid "Default Reply-To"
    10991142msgstr ""
    11001143
    … …  
    14501493msgstr ""
    14511494
    1452 #: includes/class-dfsmtp-mailer.php:778
     1495#: includes/class-dfsmtp-mailer.php:995
    14531496msgid "(nobody: the email had no recipient address)"
    14541497msgstr ""
    14551498
    1456 #: includes/class-dfsmtp-mailer.php:786
     1499#: includes/class-dfsmtp-mailer.php:1003
    14571500msgid "This email cannot be delivered as it stands, so it will not be retried. Fix the address where the email comes from (for example, add an email address to the order), then send it again."
    14581501msgstr ""
  • dadsfam-email-smtp/trunk/readme.txt

    r3733154 r3749022  
    55Tested up to: 7.1
    66Requires PHP: 8.0
    7 Stable tag: 2.1.6
     7Stable tag: 2.1.7
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
    … …  
    117117No. Each send writes one indexed row, and the log list never loads message bodies. Old entries are purged automatically on a daily schedule according to your retention setting.
    118118
     119= Replies to my contact form go to me as well as the visitor. =
     120
     121Update to 2.1.7 or later. The Default Reply-To setting is only used for emails that do not say who to reply to, so a contact form or enquiry form that sets the visitor as the Reply-To keeps it, and your reply goes to them alone.
     122
    119123= How do I stop a staging site emailing real customers? =
    120124
    … …  
    156160
    157161== Changelog ==
     162
     163= 2.1.7 =
     164* Fixed: the Reply-To setting was added to every email, even one that already said who to reply to. Mail programs then replied to both addresses, so when someone answered a contact-form enquiry, the site owner was copied in on a private conversation. The setting is now a default: it is only used when an email has no Reply-To of its own. Contact forms, enquiry forms and WooCommerce emails keep theirs.
     165* Fixed: the email log showed the Reply-To setting rather than the Reply-To the email actually went out with. It now records the real one.
     166* Fixed: resending an email from the log, and PRO's automatic retry, keep the email's original Reply-To.
     167* Fixed: after one email failed, the next email sent at the same moment went out over the same broken connection and failed too. That included the "delivery failure" alert, PRO's backup server (the email went back to the main server instead) and every PRO retry after the first. Each email now starts a fresh connection after a failure.
     168* Fixed: emails held back on purpose (by staging mode, the suppression list or PRO's hourly limit) were logged as "failed", so PRO's automatic retry could send them anyway. An email held back on a staging site could go out once blocking was switched off, and a deferred email could go out twice. They now have their own status (Blocked, Suppressed or Deferred), are never retried and no longer count as failures. Existing log entries are corrected once when you update.
     169* Fixed: opening the Settings screen put the provider's default port and encryption into the form, so saving any other setting (the From name, say) could quietly change how the site connects to its mail server. The form now shows what is saved, and only fills in a provider's defaults when you choose a provider.
     170* Changed: the Reply-To field is now called "Default Reply-To email" and says it is only used when an email has none of its own.
    158171
    159172= 2.1.6 =
    … …  
    270283== Upgrade Notice ==
    271284
     285= 2.1.7 =
     286Replies to contact forms no longer copy in the site owner, an email no longer fails because the one before it failed, and PRO no longer retries emails held back on purpose. Recommended for every site.
     287
    272288= 2.1.6 =
    273289Fixes the email log sometimes showing an empty white box instead of the email, and stops a look at a logged email counting as an open. Recommended.
Note: See TracChangeset for help on using the changeset viewer.