Changeset 3749022
- Timestamp:
- 10/15/2026 05:25:39 PM (7 weeks ago)
- Location:
- dadsfam-email-smtp
- Files:
-
- 26 edited
- 1 copied
-
tags/2.1.7 (copied) (copied from dadsfam-email-smtp/trunk )
-
tags/2.1.7/assets/css/admin.css (modified) (1 diff)
-
tags/2.1.7/assets/js/admin.js (modified) (2 diffs)
-
tags/2.1.7/dadsfam-email-smtp.php (modified) (2 diffs)
-
tags/2.1.7/includes/admin/pages/page-changelog.php (modified) (1 diff)
-
tags/2.1.7/includes/admin/pages/page-logs.php (modified) (1 diff)
-
tags/2.1.7/includes/admin/pages/page-settings.php (modified) (1 diff)
-
tags/2.1.7/includes/admin/pages/page-test.php (modified) (1 diff)
-
tags/2.1.7/includes/class-dfsmtp-abilities.php (modified) (1 diff)
-
tags/2.1.7/includes/class-dfsmtp-logger.php (modified) (7 diffs)
-
tags/2.1.7/includes/class-dfsmtp-mailer.php (modified) (12 diffs)
-
tags/2.1.7/includes/class-dfsmtp-operations.php (modified) (1 diff)
-
tags/2.1.7/languages/dadsfam-email-smtp.pot (modified) (16 diffs)
-
tags/2.1.7/readme.txt (modified) (4 diffs)
-
trunk/assets/css/admin.css (modified) (1 diff)
-
trunk/assets/js/admin.js (modified) (2 diffs)
-
trunk/dadsfam-email-smtp.php (modified) (2 diffs)
-
trunk/includes/admin/pages/page-changelog.php (modified) (1 diff)
-
trunk/includes/admin/pages/page-logs.php (modified) (1 diff)
-
trunk/includes/admin/pages/page-settings.php (modified) (1 diff)
-
trunk/includes/admin/pages/page-test.php (modified) (1 diff)
-
trunk/includes/class-dfsmtp-abilities.php (modified) (1 diff)
-
trunk/includes/class-dfsmtp-logger.php (modified) (7 diffs)
-
trunk/includes/class-dfsmtp-mailer.php (modified) (12 diffs)
-
trunk/includes/class-dfsmtp-operations.php (modified) (1 diff)
-
trunk/languages/dadsfam-email-smtp.pot (modified) (16 diffs)
-
trunk/readme.txt (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
dadsfam-email-smtp/tags/2.1.7/assets/css/admin.css
r3733154 r3749022 258 258 .dfsmtp-pill--blocked{background:#fef3c7;color:#92400e;} 259 259 .dfsmtp-pill--suppressed{background:#e0e7ff;color:#3730a3;} 260 .dfsmtp-pill--deferred{background:#e0f2fe;color:#075985;} 260 261 .dfsmtp-pill--major{background:var(--df-grad);color:#fff;} 261 262 .dfsmtp-pill--minor{background:#dbeafe;color:#1e40af;} -
dadsfam-email-smtp/tags/2.1.7/assets/js/admin.js
r3733154 r3749022 63 63 }; 64 64 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. 65 78 $( '#dfsmtp-provider' ).on( 'change', function () { 66 79 var key = $( this ).val(); … … 75 88 } 76 89 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() ); 84 93 85 94 /* ── Auth toggle & password visibility ────────────────────────────────── */ -
dadsfam-email-smtp/tags/2.1.7/dadsfam-email-smtp.php
r3733154 r3749022 4 4 * Plugin URI: https://plugins.dadsfam.co.za/ 5 5 * 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. 66 * Version: 2.1.7 7 7 * Requires at least: 6.0 8 8 * Requires PHP: 8.0 … … 49 49 50 50 // ── Constants ──────────────────────────────────────────────────────────────── 51 define( 'DFSMTP_VERSION', '2.1. 6' );51 define( 'DFSMTP_VERSION', '2.1.7' ); 52 52 define( 'DFSMTP_FILE', __FILE__ ); 53 53 define( 'DFSMTP_DIR', plugin_dir_path( __FILE__ ) ); -
dadsfam-email-smtp/tags/2.1.7/includes/admin/pages/page-changelog.php
r3733154 r3749022 11 11 12 12 $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 ), 13 28 array( 14 29 'version' => '2.1.6', -
dadsfam-email-smtp/tags/2.1.7/includes/admin/pages/page-logs.php
r3733154 r3749022 59 59 <option value="blocked" <?php selected( $dfsmtp_status, 'blocked' ); ?>><?php esc_html_e( 'Blocked', 'dadsfam-email-smtp' ); ?></option> 60 60 <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> 61 62 </select> 62 63 <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 143 143 </div> 144 144 <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> 147 148 </div> 148 149 <div class="dfsmtp-field"> -
dadsfam-email-smtp/tags/2.1.7/includes/admin/pages/page-test.php
r3642053 r3749022 66 66 __( 'Encryption', 'dadsfam-email-smtp' ) => strtoupper( $dfsmtp_s['encryption'] ?? 'tls' ), 67 67 __( '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' ), 69 69 ); 70 70 foreach ( $dfsmtp_rows as $dfsmtp_k => $dfsmtp_v ) : -
dadsfam-email-smtp/tags/2.1.7/includes/class-dfsmtp-abilities.php
r3681109 r3749022 248 248 'status' => array( 249 249 'type' => 'string', 250 'enum' => array( 'sent', 'failed' ),250 'enum' => array( 'sent', 'failed', 'blocked', 'suppressed', 'deferred' ), 251 251 ), 252 252 ), -
dadsfam-email-smtp/tags/2.1.7/includes/class-dfsmtp-logger.php
r3714354 r3749022 28 28 class DFSMTP_Logger { 29 29 30 const TABLE_VERSION = ' 4';30 const TABLE_VERSION = '5'; 31 31 const OPT_TABLE_VER = 'dfsmtp_table_version'; 32 32 … … 37 37 */ 38 38 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 ); 39 49 40 50 private static ?DFSMTP_Logger $instance = null; … … 54 64 self::create_table(); 55 65 $this->maybe_upgrade_columns(); 66 $this->upgrade_statuses(); 56 67 update_option( self::OPT_TABLE_VER, self::TABLE_VERSION ); 57 68 } … … 119 130 } 120 131 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 121 148 private function table_exists(): bool { 122 149 global $wpdb; … … 149 176 } 150 177 178 $status = $success ? 'sent' : 'failed'; 179 if ( ! $success && isset( self::HELD_BACK[ $provider ] ) ) { 180 $status = self::HELD_BACK[ $provider ]; 181 } 182 151 183 global $wpdb; 152 184 $wpdb->insert( 153 185 $this->table, 154 186 array( 155 'status' => $s uccess ? 'sent' : 'failed',187 'status' => $status, 156 188 'subject' => mb_substr( $subject, 0, 500 ), 157 189 'to_email' => mb_substr( $to, 0, 500 ), … … 318 350 "SELECT * FROM {$this->table} 319 351 WHERE status='failed' AND retry_count < %d AND body != '' AND to_email != '' 352 AND provider NOT IN ('blocked','suppressed','rate-limited') 320 353 AND sent_at >= DATE_SUB( NOW(), INTERVAL %d MINUTE ) 321 354 ORDER BY id ASC LIMIT %d", … … 332 365 "SELECT * FROM {$this->table} 333 366 WHERE status='failed' AND retry_count < %d AND body != '' AND to_email != '' 367 AND provider NOT IN ('blocked','suppressed','rate-limited') 334 368 ORDER BY id ASC LIMIT %d", 335 369 $max_retries, -
dadsfam-email-smtp/tags/2.1.7/includes/class-dfsmtp-mailer.php
r3714354 r3749022 275 275 $this->apply_common_headers( $m, $s ); 276 276 do_action( 'dfsmtp_after_configure_mailer', $m, $s ); 277 $this->note_reply_to( $m ); 277 278 return; 278 279 } 279 280 280 281 if ( empty( $s['host'] ) ) { 282 $this->note_reply_to( $m ); 281 283 return; // Not configured yet — leave WordPress to its default. 282 284 } … … 290 292 */ 291 293 do_action( 'dfsmtp_after_configure_mailer', $m, $s ); 294 295 $this->note_reply_to( $m ); 292 296 } 293 297 … … 295 299 * Reply-To and Return-Path apply regardless of which SMTP account was 296 300 * 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. 297 312 */ 298 313 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 } 304 326 } 305 327 } … … 307 329 $m->Sender = $s['return_path']; 308 330 } 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 ); 309 501 } 310 502 … … 596 788 '', 597 789 $atts['message'] ?? '', 598 $s['reply_to'] ?? ''790 self::logged_reply_to( (array) $atts, $s ) 599 791 ); 600 792 return true; // Silently drop. … … 617 809 '', 618 810 $atts['message'] ?? '', 619 $s['reply_to'] ?? ''811 self::logged_reply_to( (array) $atts, $s ) 620 812 ); 621 813 return true; // Report success so calling plugins do not error. … … 693 885 '', 694 886 $data['message'] ?? '', 695 $s['reply_to'] ?? ''887 self::logged_reply_to( $this->pending_mail, $s ) 696 888 ); 697 889 … … 707 899 708 900 public function on_failed( $error ): void { 901 // Start the next email on a fresh connection. See close_connection(). 902 self::close_connection(); 903 709 904 $logger = DFSMTP_Logger::instance(); 710 905 $s = $this->get_settings(); … … 732 927 '', 733 928 $mail['message'] ?? '', 734 $s['reply_to'] ?? ''929 self::logged_reply_to( $mail, $s ) 735 930 ); 736 931 … … 762 957 */ 763 958 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 } 764 981 } 765 982 … … 1007 1224 $this->begin_retry( (int) $log->id ); 1008 1225 } 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 1009 1234 $this->internal_send = true; 1010 1235 $result = wp_mail( … … 1012 1237 $log->subject, 1013 1238 $log->body, 1014 array( 'Content-Type: text/html; charset=UTF-8' )1239 $headers 1015 1240 ); 1016 1241 $this->internal_send = false; -
dadsfam-email-smtp/tags/2.1.7/includes/class-dfsmtp-operations.php
r3681109 r3749022 344 344 $search = isset( $input['search'] ) ? sanitize_text_field( (string) $input['search'] ) : ''; 345 345 $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 ) ) { 347 347 $status = ''; 348 348 } -
dadsfam-email-smtp/tags/2.1.7/languages/dadsfam-email-smtp.pot
r3733154 r3749022 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: DadsFam SMTP 2.1. 6\n"5 "Project-Id-Version: DadsFam SMTP 2.1.7\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/dadsfam-email-smtp\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "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" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.12.0\n" … … 21 21 #: includes/admin/pages/page-addons.php:14 22 22 #: includes/admin/pages/page-analytics.php:17 23 #: includes/admin/pages/page-changelog.php:2 6723 #: includes/admin/pages/page-changelog.php:282 24 24 #: includes/admin/pages/page-logs.php:46 25 25 #: includes/admin/pages/page-settings.php:17 … … 80 80 #: includes/admin/class-dfsmtp-admin.php:77 81 81 #: includes/admin/class-dfsmtp-admin.php:935 82 #: includes/admin/pages/page-changelog.php:2 6782 #: includes/admin/pages/page-changelog.php:282 83 83 msgid "Changelog" 84 84 msgstr "" … … 97 97 98 98 #: includes/admin/class-dfsmtp-admin.php:114 99 #: includes/admin/pages/page-logs.php:19 599 #: includes/admin/pages/page-logs.php:196 100 100 msgid "Email" 101 101 msgstr "" … … 118 118 119 119 #: includes/admin/class-dfsmtp-admin.php:119 120 #: includes/admin/pages/page-logs.php:10 3120 #: includes/admin/pages/page-logs.php:104 121 121 msgid "To" 122 122 msgstr "" … … 128 128 129 129 #: includes/admin/class-dfsmtp-admin.php:121 130 #: includes/admin/pages/page-test.php:68131 130 msgid "Reply-To" 132 131 msgstr "" 133 132 134 133 #: includes/admin/class-dfsmtp-admin.php:122 135 #: includes/admin/pages/page-logs.php:10 1134 #: includes/admin/pages/page-logs.php:102 136 135 msgid "Status" 137 136 msgstr "" … … 139 138 #: includes/admin/class-dfsmtp-admin.php:123 140 139 #: includes/admin/pages/page-analytics.php:104 141 #: includes/admin/pages/page-logs.php:10 4140 #: includes/admin/pages/page-logs.php:105 142 141 #: includes/admin/pages/page-settings.php:72 143 142 msgid "Connection" … … 145 144 146 145 #: includes/admin/class-dfsmtp-admin.php:124 147 #: includes/admin/pages/page-logs.php:1 09146 #: includes/admin/pages/page-logs.php:110 148 147 msgid "Sent at" 149 148 msgstr "" … … 162 161 163 162 #: includes/admin/class-dfsmtp-admin.php:128 164 #: includes/admin/pages/page-logs.php:19 6163 #: includes/admin/pages/page-logs.php:197 165 164 msgid "Close" 166 165 msgstr "" … … 375 374 376 375 #: includes/admin/pages/page-analytics.php:59 377 #: includes/admin/pages/page-logs.php:9 2376 #: includes/admin/pages/page-logs.php:93 378 377 msgid "Send a test email" 379 378 msgstr "" … … 404 403 405 404 #: includes/admin/pages/page-changelog.php:17 405 msgid "Replies go to the right person" 406 msgstr "" 407 408 #: includes/admin/pages/page-changelog.php:19 409 msgid "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." 410 msgstr "" 411 412 #: includes/admin/pages/page-changelog.php:20 413 msgid "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." 414 msgstr "" 415 416 #: includes/admin/pages/page-changelog.php:21 417 msgid "Fixed: resending an email from the log, and PRO's automatic retry, keep the email's original Reply-To." 418 msgstr "" 419 420 #: includes/admin/pages/page-changelog.php:22 421 msgid "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." 422 msgstr "" 423 424 #: includes/admin/pages/page-changelog.php:23 425 msgid "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." 426 msgstr "" 427 428 #: includes/admin/pages/page-changelog.php:24 429 msgid "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." 430 msgstr "" 431 432 #: includes/admin/pages/page-changelog.php:25 433 msgid "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." 434 msgstr "" 435 436 #: includes/admin/pages/page-changelog.php:32 406 437 msgid "The email log shows the email, every time" 407 438 msgstr "" 408 439 409 #: includes/admin/pages/page-changelog.php: 19440 #: includes/admin/pages/page-changelog.php:34 410 441 msgid "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." 411 442 msgstr "" 412 443 413 #: includes/admin/pages/page-changelog.php: 20444 #: includes/admin/pages/page-changelog.php:35 414 445 msgid "Fixed: the dark background behind an open email covered only part of the screen." 415 446 msgstr "" 416 447 417 #: includes/admin/pages/page-changelog.php: 21448 #: includes/admin/pages/page-changelog.php:36 418 449 msgid "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." 419 450 msgstr "" 420 451 421 #: includes/admin/pages/page-changelog.php: 22452 #: includes/admin/pages/page-changelog.php:37 422 453 msgid "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." 423 454 msgstr "" 424 455 425 #: includes/admin/pages/page-changelog.php: 23456 #: includes/admin/pages/page-changelog.php:38 426 457 msgid "Improved: links in the email open in a new tab, plain-text emails keep their line breaks, and the Escape key closes the window." 427 458 msgstr "" 428 459 429 #: includes/admin/pages/page-changelog.php: 24460 #: includes/admin/pages/page-changelog.php:39 430 461 msgid "Improved: this screen shows the newest release at the top, PRO releases included." 431 462 msgstr "" 432 463 433 #: includes/admin/pages/page-changelog.php: 31464 #: includes/admin/pages/page-changelog.php:46 434 465 msgid "One failed email stays one failed email" 435 466 msgstr "" 436 467 437 #: includes/admin/pages/page-changelog.php: 33468 #: includes/admin/pages/page-changelog.php:48 438 469 msgid "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." 439 470 msgstr "" 440 471 441 #: includes/admin/pages/page-changelog.php: 34472 #: includes/admin/pages/page-changelog.php:49 442 473 msgid "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." 443 474 msgstr "" 444 475 445 #: includes/admin/pages/page-changelog.php: 35476 #: includes/admin/pages/page-changelog.php:50 446 477 msgid "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." 447 478 msgstr "" 448 479 449 #: includes/admin/pages/page-changelog.php: 36480 #: includes/admin/pages/page-changelog.php:51 450 481 msgid "Changed: the Retries column in the email log shows a dash for an email that will not be retried." 451 482 msgstr "" 452 483 453 #: includes/admin/pages/page-changelog.php: 43484 #: includes/admin/pages/page-changelog.php:58 454 485 msgid "WordPress.org housekeeping" 455 486 msgstr "" 456 487 457 #: includes/admin/pages/page-changelog.php: 45488 #: includes/admin/pages/page-changelog.php:60 458 489 msgid "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." 459 490 msgstr "" 460 491 461 #: includes/admin/pages/page-changelog.php: 46492 #: includes/admin/pages/page-changelog.php:61 462 493 msgid "Added: a translation template, so the plugin can be translated." 463 494 msgstr "" 464 495 465 #: includes/admin/pages/page-changelog.php: 53496 #: includes/admin/pages/page-changelog.php:68 466 497 msgid "Emails other plugins stop now stay stopped" 467 498 msgstr "" 468 499 469 #: includes/admin/pages/page-changelog.php: 55500 #: includes/admin/pages/page-changelog.php:70 470 501 msgid "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." 471 502 msgstr "" 472 503 473 #: includes/admin/pages/page-changelog.php: 56504 #: includes/admin/pages/page-changelog.php:71 474 505 msgid "Tidied: removed an old translation-loading call. WordPress has loaded plugin translations by itself since version 4.6." 475 506 msgstr "" 476 507 477 #: includes/admin/pages/page-changelog.php: 63508 #: includes/admin/pages/page-changelog.php:78 478 509 msgid "Plugin page screenshots" 479 510 msgstr "" 480 511 481 #: includes/admin/pages/page-changelog.php: 65512 #: includes/admin/pages/page-changelog.php:80 482 513 msgid "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." 483 514 msgstr "" 484 515 485 #: includes/admin/pages/page-changelog.php: 72516 #: includes/admin/pages/page-changelog.php:87 486 517 msgid "More AI abilities, for when mail goes wrong" 487 518 msgstr "" 488 519 489 #: includes/admin/pages/page-changelog.php: 74520 #: includes/admin/pages/page-changelog.php:89 490 521 msgid "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." 491 522 msgstr "" 492 523 493 #: includes/admin/pages/page-changelog.php: 75524 #: includes/admin/pages/page-changelog.php:90 494 525 msgid "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." 495 526 msgstr "" 496 527 497 #: includes/admin/pages/page-changelog.php: 76528 #: includes/admin/pages/page-changelog.php:91 498 529 msgid "Added: list the failed emails still waiting to be retried, with the error that stopped each one. Retrying itself remains a PRO feature." 499 530 msgstr "" 500 531 501 #: includes/admin/pages/page-changelog.php: 77532 #: includes/admin/pages/page-changelog.php:92 502 533 msgid "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." 503 534 msgstr "" 504 535 505 #: includes/admin/pages/page-changelog.php: 78536 #: includes/admin/pages/page-changelog.php:93 506 537 msgid "Added: a single support report gathering versions, configuration, the SPF, DKIM and DMARC checks and recent sending statistics." 507 538 msgstr "" 508 539 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 543 msgid "No changes to how the plugin sends, logs or tests email." 544 msgstr "" 545 546 #: includes/admin/pages/page-changelog.php:101 547 msgid "Packaging fix" 548 msgstr "" 549 550 #: includes/admin/pages/page-changelog.php:103 551 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." 552 msgstr "" 553 511 554 #: 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:86516 msgid "Packaging fix"517 msgstr ""518 519 #: includes/admin/pages/page-changelog.php:88520 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:95524 555 msgid "AI assistant support (WordPress Abilities API)" 525 556 msgstr "" 526 557 527 #: includes/admin/pages/page-changelog.php: 97558 #: includes/admin/pages/page-changelog.php:112 528 559 msgid "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)." 529 560 msgstr "" 530 561 531 #: includes/admin/pages/page-changelog.php: 98562 #: includes/admin/pages/page-changelog.php:113 532 563 msgid "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." 533 564 msgstr "" 534 565 535 #: includes/admin/pages/page-changelog.php: 99566 #: includes/admin/pages/page-changelog.php:114 536 567 msgid "On WordPress versions without the Abilities API, nothing changes and the plugin works exactly as before." 537 568 msgstr "" 538 569 539 #: includes/admin/pages/page-changelog.php:1 07570 #: includes/admin/pages/page-changelog.php:122 540 571 msgid "A word about PRO" 541 572 msgstr "" 542 573 543 #: includes/admin/pages/page-changelog.php:1 09574 #: includes/admin/pages/page-changelog.php:124 544 575 msgid "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." 545 576 msgstr "" 546 577 547 #: includes/admin/pages/page-changelog.php:1 17578 #: includes/admin/pages/page-changelog.php:132 548 579 msgid "Uninstall cleanup made precise and multisite-aware" 549 580 msgstr "" 550 581 551 #: includes/admin/pages/page-changelog.php:1 19582 #: includes/admin/pages/page-changelog.php:134 552 583 msgid "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." 553 584 msgstr "" 554 585 555 #: includes/admin/pages/page-changelog.php:1 20586 #: includes/admin/pages/page-changelog.php:135 556 587 msgid "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." 557 588 msgstr "" 558 589 559 #: includes/admin/pages/page-changelog.php:1 27590 #: includes/admin/pages/page-changelog.php:142 560 591 msgid "Import hardening and directory compliance" 561 592 msgstr "" 562 593 563 #: includes/admin/pages/page-changelog.php:1 29594 #: includes/admin/pages/page-changelog.php:144 564 595 msgid "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" 565 596 msgstr "" 566 597 567 #: includes/admin/pages/page-changelog.php:1 30598 #: includes/admin/pages/page-changelog.php:145 568 599 msgid "Added: an External services section to the readme setting out what is sent to your SMTP provider, when and where" 569 600 msgstr "" 570 601 571 #: includes/admin/pages/page-changelog.php:1 31602 #: includes/admin/pages/page-changelog.php:146 572 603 msgid "Fixed: the plugin header pointed at a page that did not exist" 573 604 msgstr "" 574 605 575 #: includes/admin/pages/page-changelog.php:1 32606 #: includes/admin/pages/page-changelog.php:147 576 607 msgid "Changed: the text domain now matches the plugin slug so the community translation tools can pick it up" 577 608 msgstr "" 578 609 579 #: includes/admin/pages/page-changelog.php:1 39610 #: includes/admin/pages/page-changelog.php:154 580 611 msgid "Stored password hardening" 581 612 msgstr "" 582 613 583 #: includes/admin/pages/page-changelog.php:1 41614 #: includes/admin/pages/page-changelog.php:156 584 615 msgid "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." 585 616 msgstr "" 586 617 587 #: includes/admin/pages/page-changelog.php:1 42618 #: includes/admin/pages/page-changelog.php:157 588 619 msgid "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." 589 620 msgstr "" 590 621 591 #: includes/admin/pages/page-changelog.php:1 43622 #: includes/admin/pages/page-changelog.php:158 592 623 msgid "Changed: uninstall clears everything under this plugin's own prefix generically rather than listing add-on option names." 593 624 msgstr "" 594 625 595 #: includes/admin/pages/page-changelog.php:1 50626 #: includes/admin/pages/page-changelog.php:165 596 627 msgid "Accurate WooCommerce log labelling" 597 628 msgstr "" 598 629 599 #: includes/admin/pages/page-changelog.php:1 52630 #: includes/admin/pages/page-changelog.php:167 600 631 msgid "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." 601 632 msgstr "" 602 633 603 #: includes/admin/pages/page-changelog.php:1 53634 #: includes/admin/pages/page-changelog.php:168 604 635 msgid "Fixed: failed sends now record the WooCommerce email type, so a failed order email can be told apart from other failures." 605 636 msgstr "" 606 637 607 #: includes/admin/pages/page-changelog.php:1 60638 #: includes/admin/pages/page-changelog.php:175 608 639 msgid "Version alignment" 609 640 msgstr "" 610 641 611 #: includes/admin/pages/page-changelog.php:1 62642 #: includes/admin/pages/page-changelog.php:177 612 643 msgid "Version number aligned with the separate PRO add-on. No functional change to this plugin." 613 644 msgstr "" 614 645 615 #: includes/admin/pages/page-changelog.php:1 69646 #: includes/admin/pages/page-changelog.php:184 616 647 msgid "PHP 8.4 readiness" 617 648 msgstr "" 618 649 619 #: includes/admin/pages/page-changelog.php:1 71650 #: includes/admin/pages/page-changelog.php:186 620 651 msgid "Fixed: the connection tester used an implicitly nullable parameter, deprecated in PHP 8.4." 621 652 msgstr "" 622 653 623 #: includes/admin/pages/page-changelog.php:1 72654 #: includes/admin/pages/page-changelog.php:187 624 655 msgid "Fixed: CSV export passes the fputcsv() escape argument explicitly, producing RFC 4180 output that spreadsheets read correctly." 625 656 msgstr "" 626 657 627 #: includes/admin/pages/page-changelog.php:1 73658 #: includes/admin/pages/page-changelog.php:188 628 659 msgid "Verified against PHP 8.0 through 8.4 and WordPress 7.0." 629 660 msgstr "" 630 661 631 #: includes/admin/pages/page-changelog.php:1 80662 #: includes/admin/pages/page-changelog.php:195 632 663 msgid "Core / add-on split and three delivery fixes" 633 664 msgstr "" 634 665 635 #: includes/admin/pages/page-changelog.php:1 82666 #: includes/admin/pages/page-changelog.php:197 636 667 msgid "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." 637 668 msgstr "" 638 669 639 #: includes/admin/pages/page-changelog.php:1 83670 #: includes/admin/pages/page-changelog.php:198 640 671 msgid "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." 641 672 msgstr "" 642 673 643 #: includes/admin/pages/page-changelog.php:1 84674 #: includes/admin/pages/page-changelog.php:199 644 675 msgid "Fixed: the suppression list now matches whole addresses and domains instead of loose substrings, so a short entry can no longer block unrelated recipients." 645 676 msgstr "" 646 677 647 #: includes/admin/pages/page-changelog.php: 185678 #: includes/admin/pages/page-changelog.php:200 648 679 msgid "Fixed: uninstall now removes every option the plugin creates, including the log table version marker." 649 680 msgstr "" 650 681 651 #: includes/admin/pages/page-changelog.php: 186682 #: includes/admin/pages/page-changelog.php:201 652 683 msgid "Fixed: the log table is created with all columns present rather than relying on a later migration." 653 684 msgstr "" 654 685 655 #: includes/admin/pages/page-changelog.php: 187686 #: includes/admin/pages/page-changelog.php:202 656 687 msgid "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." 657 688 msgstr "" 658 689 659 #: includes/admin/pages/page-changelog.php: 188690 #: includes/admin/pages/page-changelog.php:203 660 691 msgid "Changed: CSV export and the full email body viewer are available on every site." 661 692 msgstr "" 662 693 663 #: includes/admin/pages/page-changelog.php: 189694 #: includes/admin/pages/page-changelog.php:204 664 695 msgid "Changed: the plugin no longer overrides the WordPress core \"weekly\" cron schedule." 665 696 msgstr "" 666 697 667 #: includes/admin/pages/page-changelog.php: 190698 #: includes/admin/pages/page-changelog.php:205 668 699 msgid "New: a documented hook API so add-ons can extend the send pipeline and admin screens cleanly." 669 700 msgstr "" 670 701 671 #: includes/admin/pages/page-changelog.php: 191702 #: includes/admin/pages/page-changelog.php:206 672 703 msgid "New: admin styles are served from a proper enqueued stylesheet rather than an inline style block." 673 704 msgstr "" 674 705 675 #: includes/admin/pages/page-changelog.php: 192706 #: includes/admin/pages/page-changelog.php:207 676 707 msgid "Upgrading from 1.6.x keeps every setting and log entry — the folder name and option keys are unchanged." 677 708 msgstr "" 678 709 679 #: includes/admin/pages/page-changelog.php: 199710 #: includes/admin/pages/page-changelog.php:214 680 711 msgid "Routing and logging refinements" 681 712 msgstr "" 682 713 683 #: includes/admin/pages/page-changelog.php:2 01714 #: includes/admin/pages/page-changelog.php:216 684 715 msgid "Routing rules with an empty match value are skipped instead of capturing every email." 685 716 msgstr "" 686 717 687 #: includes/admin/pages/page-changelog.php:2 02718 #: includes/admin/pages/page-changelog.php:217 688 719 msgid "WooCommerce email detection moved to a hook-based flag consumed by a single outgoing email." 689 720 msgstr "" 690 721 691 #: includes/admin/pages/page-changelog.php:2 03722 #: includes/admin/pages/page-changelog.php:218 692 723 msgid "The log list view no longer selects the body column, preventing memory exhaustion on large logs." 693 724 msgstr "" 694 725 695 #: includes/admin/pages/page-changelog.php:2 10726 #: includes/admin/pages/page-changelog.php:225 696 727 msgid "Email health score" 697 728 msgstr "" 698 729 699 #: includes/admin/pages/page-changelog.php:2 12730 #: includes/admin/pages/page-changelog.php:227 700 731 msgid "New deliverability score combining DNS authentication, configuration and real send history." 701 732 msgstr "" 702 733 703 #: includes/admin/pages/page-changelog.php:2 13734 #: includes/admin/pages/page-changelog.php:228 704 735 msgid "Dashboard widget showing sent, failed and success rate at a glance." 705 736 msgstr "" 706 737 707 #: includes/admin/pages/page-changelog.php:2 20738 #: includes/admin/pages/page-changelog.php:235 708 739 msgid "Backup, migrate and setup wizard" 709 740 msgstr "" 710 741 711 #: includes/admin/pages/page-changelog.php:2 22742 #: includes/admin/pages/page-changelog.php:237 712 743 msgid "Export and import your configuration as JSON. Passwords are never included." 713 744 msgstr "" 714 745 715 #: includes/admin/pages/page-changelog.php:2 23746 #: includes/admin/pages/page-changelog.php:238 716 747 msgid "Guided first-run setup for new installations." 717 748 msgstr "" 718 749 719 #: includes/admin/pages/page-changelog.php:2 30750 #: includes/admin/pages/page-changelog.php:245 720 751 msgid "Delivery controls" 721 752 msgstr "" 722 753 723 #: includes/admin/pages/page-changelog.php:2 32754 #: includes/admin/pages/page-changelog.php:247 724 755 msgid "Blocking mode stops all outgoing email on staging copies while still logging every attempt." 725 756 msgstr "" 726 757 727 #: includes/admin/pages/page-changelog.php:2 33758 #: includes/admin/pages/page-changelog.php:248 728 759 msgid "Suppression list for addresses and domains that must never be contacted." 729 760 msgstr "" 730 761 731 #: includes/admin/pages/page-changelog.php:2 34762 #: includes/admin/pages/page-changelog.php:249 732 763 msgid "Deliverability checker for SPF, DKIM, DMARC and MX records." 733 764 msgstr "" 734 765 735 #: includes/admin/pages/page-changelog.php:2 41766 #: includes/admin/pages/page-changelog.php:256 736 767 msgid "First release" 737 768 msgstr "" 738 769 739 #: includes/admin/pages/page-changelog.php:2 43770 #: includes/admin/pages/page-changelog.php:258 740 771 msgid "SMTP delivery with 13 pre-configured providers and AES-256-CBC encrypted credentials." 741 772 msgstr "" 742 773 743 #: includes/admin/pages/page-changelog.php:2 44774 #: includes/admin/pages/page-changelog.php:259 744 775 msgid "Full email logging with one-click resend." 745 776 msgstr "" 746 777 747 #: includes/admin/pages/page-changelog.php:2 45778 #: includes/admin/pages/page-changelog.php:260 748 779 msgid "Live send test with real SMTP diagnostic output." 749 780 msgstr "" 750 781 751 #: includes/admin/pages/page-changelog.php:2 71782 #: includes/admin/pages/page-changelog.php:286 752 783 msgid "Release History" 753 784 msgstr "" 754 785 755 786 #. translators: %s: current plugin version 756 #: includes/admin/pages/page-changelog.php:2 76787 #: includes/admin/pages/page-changelog.php:291 757 788 #, php-format 758 789 msgid "You are running version %s." … … 775 806 msgstr "" 776 807 777 #: includes/admin/pages/page-logs.php:62 808 #: includes/admin/pages/page-logs.php:61 809 msgid "Deferred" 810 msgstr "" 811 812 #: includes/admin/pages/page-logs.php:63 778 813 msgid "Search" 779 814 msgstr "" 780 815 781 #: includes/admin/pages/page-logs.php:6 4816 #: includes/admin/pages/page-logs.php:65 782 817 msgid "Clear" 783 818 msgstr "" 784 819 785 #: includes/admin/pages/page-logs.php:6 8820 #: includes/admin/pages/page-logs.php:69 786 821 msgid "Export CSV" 787 822 msgstr "" 788 823 789 #: includes/admin/pages/page-logs.php: 69824 #: includes/admin/pages/page-logs.php:70 790 825 msgid "Clear all" 791 826 msgstr "" 792 827 793 828 #. translators: %s: search term 794 #: includes/admin/pages/page-logs.php:8 3829 #: includes/admin/pages/page-logs.php:84 795 830 #, php-format 796 831 msgid "No logs matching %s." 797 832 msgstr "" 798 833 799 #: includes/admin/pages/page-logs.php:8 7834 #: includes/admin/pages/page-logs.php:88 800 835 msgid "No email logs yet." 801 836 msgstr "" 802 837 803 #: includes/admin/pages/page-logs.php:9 3838 #: includes/admin/pages/page-logs.php:94 804 839 msgid "to see entries appear here." 805 840 msgstr "" 806 841 807 #: includes/admin/pages/page-logs.php:10 2842 #: includes/admin/pages/page-logs.php:103 808 843 msgid "Subject" 809 844 msgstr "" 810 845 811 #: includes/admin/pages/page-logs.php:10 8846 #: includes/admin/pages/page-logs.php:109 812 847 msgid "Retries" 813 848 msgstr "" 814 849 815 #: includes/admin/pages/page-logs.php:11 0850 #: includes/admin/pages/page-logs.php:111 816 851 msgid "Actions" 817 852 msgstr "" 818 853 819 #: includes/admin/pages/page-logs.php:1 39854 #: includes/admin/pages/page-logs.php:140 820 855 msgid "Not retried: this email has no valid recipient." 821 856 msgstr "" 822 857 823 #: includes/admin/pages/page-logs.php:14 3858 #: includes/admin/pages/page-logs.php:144 824 859 msgid "View" 825 860 msgstr "" 826 861 827 #: includes/admin/pages/page-logs.php:14 4862 #: includes/admin/pages/page-logs.php:145 828 863 msgid "Resend" 829 864 msgstr "" 830 865 831 #: includes/admin/pages/page-logs.php:14 5866 #: includes/admin/pages/page-logs.php:146 832 867 msgid "Delete" 833 868 msgstr "" 834 869 835 870 #. translators: %s: total number of log entries 836 #: includes/admin/pages/page-logs.php:18 3871 #: includes/admin/pages/page-logs.php:184 837 872 #, php-format 838 873 msgid "%s entries" … … 954 989 955 990 #: includes/admin/pages/page-settings.php:145 956 msgid " Reply-To email"991 msgid "Default Reply-To email" 957 992 msgstr "" 958 993 959 994 #: 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 995 msgid "Optional" 996 msgstr "" 997 998 #: includes/admin/pages/page-settings.php:147 999 msgid "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." 1000 msgstr "" 1001 1002 #: includes/admin/pages/page-settings.php:150 964 1003 msgid "Return-Path / envelope sender" 965 1004 msgstr "" 966 1005 967 #: includes/admin/pages/page-settings.php:15 01006 #: includes/admin/pages/page-settings.php:151 968 1007 msgid "Optional — used for bounce tracking" 969 1008 msgstr "" 970 1009 971 #: includes/admin/pages/page-settings.php:15 11010 #: includes/admin/pages/page-settings.php:152 972 1011 msgid "Must match your SMTP sender domain." 973 1012 msgstr "" 974 1013 975 #: includes/admin/pages/page-settings.php:15 81014 #: includes/admin/pages/page-settings.php:159 976 1015 msgid "Logging & Alerts" 977 1016 msgstr "" 978 1017 979 #: includes/admin/pages/page-settings.php:16 21018 #: includes/admin/pages/page-settings.php:163 980 1019 msgid "Enable email logging" 981 1020 msgstr "" 982 1021 983 #: includes/admin/pages/page-settings.php:16 41022 #: includes/admin/pages/page-settings.php:165 984 1023 msgid "Every send is recorded in full, with no entry limit." 985 1024 msgstr "" 986 1025 987 #: includes/admin/pages/page-settings.php:16 71026 #: includes/admin/pages/page-settings.php:168 988 1027 msgid "Keep logs for (days)" 989 1028 msgstr "" 990 1029 991 #: includes/admin/pages/page-settings.php:1 691030 #: includes/admin/pages/page-settings.php:170 992 1031 msgid "Older entries are purged daily. Set to 0 to keep everything forever." 993 1032 msgstr "" 994 1033 995 #: includes/admin/pages/page-settings.php:17 41034 #: includes/admin/pages/page-settings.php:175 996 1035 msgid "Email me when a delivery fails" 997 1036 msgstr "" 998 1037 999 1038 #. translators: %s: admin email address 1000 #: includes/admin/pages/page-settings.php:18 01039 #: includes/admin/pages/page-settings.php:181 1001 1040 #, php-format 1002 1041 msgid "Alerts are sent to %s." 1003 1042 msgstr "" 1004 1043 1005 #: includes/admin/pages/page-settings.php:1 891044 #: includes/admin/pages/page-settings.php:190 1006 1045 msgid "Delivery Controls" 1007 1046 msgstr "" 1008 1047 1009 #: includes/admin/pages/page-settings.php:19 31048 #: includes/admin/pages/page-settings.php:194 1010 1049 msgid "Block all outgoing email (staging mode)" 1011 1050 msgstr "" 1012 1051 1013 #: includes/admin/pages/page-settings.php:19 51052 #: includes/admin/pages/page-settings.php:196 1014 1053 msgid "Nothing is delivered, but every attempt is still logged. Ideal for staging and development copies of a live site." 1015 1054 msgstr "" 1016 1055 1017 #: includes/admin/pages/page-settings.php:19 81056 #: includes/admin/pages/page-settings.php:199 1018 1057 msgid "Suppression list" 1019 1058 msgstr "" 1020 1059 1021 #: includes/admin/pages/page-settings.php:20 01060 #: includes/admin/pages/page-settings.php:201 1022 1061 msgid "One entry per line. Use a full address to block that address, or start with @ to block a whole domain." 1023 1062 msgstr "" 1024 1063 1025 #: includes/admin/pages/page-settings.php:20 61064 #: includes/admin/pages/page-settings.php:207 1026 1065 msgid "Advanced" 1027 1066 msgstr "" 1028 1067 1029 #: includes/admin/pages/page-settings.php:20 81068 #: includes/admin/pages/page-settings.php:209 1030 1069 msgid "Default DKIM selector" 1031 1070 msgstr "" 1032 1071 1033 #: includes/admin/pages/page-settings.php:21 01072 #: includes/admin/pages/page-settings.php:211 1034 1073 msgid "Used by the deliverability checker and health score. cPanel: default · Microsoft 365: selector1 · Google Workspace: google · SendGrid: s1" 1035 1074 msgstr "" 1036 1075 1037 #: includes/admin/pages/page-settings.php:21 41076 #: includes/admin/pages/page-settings.php:215 1038 1077 msgid "Keep all settings and logs if this plugin is deleted" 1039 1078 msgstr "" 1040 1079 1041 #: includes/admin/pages/page-settings.php:22 81080 #: includes/admin/pages/page-settings.php:229 1042 1081 msgid "Save settings" 1043 1082 msgstr "" … … 1097 1136 #: includes/admin/pages/page-test.php:65 1098 1137 msgid "Not configured" 1138 msgstr "" 1139 1140 #: includes/admin/pages/page-test.php:68 1141 msgid "Default Reply-To" 1099 1142 msgstr "" 1100 1143 … … 1450 1493 msgstr "" 1451 1494 1452 #: includes/class-dfsmtp-mailer.php: 7781495 #: includes/class-dfsmtp-mailer.php:995 1453 1496 msgid "(nobody: the email had no recipient address)" 1454 1497 msgstr "" 1455 1498 1456 #: includes/class-dfsmtp-mailer.php: 7861499 #: includes/class-dfsmtp-mailer.php:1003 1457 1500 msgid "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." 1458 1501 msgstr "" -
dadsfam-email-smtp/tags/2.1.7/readme.txt
r3733154 r3749022 5 5 Tested up to: 7.1 6 6 Requires PHP: 8.0 7 Stable tag: 2.1. 67 Stable tag: 2.1.7 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 117 117 No. 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. 118 118 119 = Replies to my contact form go to me as well as the visitor. = 120 121 Update 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 119 123 = How do I stop a staging site emailing real customers? = 120 124 … … 156 160 157 161 == 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. 158 171 159 172 = 2.1.6 = … … 270 283 == Upgrade Notice == 271 284 285 = 2.1.7 = 286 Replies 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 272 288 = 2.1.6 = 273 289 Fixes 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 258 258 .dfsmtp-pill--blocked{background:#fef3c7;color:#92400e;} 259 259 .dfsmtp-pill--suppressed{background:#e0e7ff;color:#3730a3;} 260 .dfsmtp-pill--deferred{background:#e0f2fe;color:#075985;} 260 261 .dfsmtp-pill--major{background:var(--df-grad);color:#fff;} 261 262 .dfsmtp-pill--minor{background:#dbeafe;color:#1e40af;} -
dadsfam-email-smtp/trunk/assets/js/admin.js
r3733154 r3749022 63 63 }; 64 64 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. 65 78 $( '#dfsmtp-provider' ).on( 'change', function () { 66 79 var key = $( this ).val(); … … 75 88 } 76 89 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() ); 84 93 85 94 /* ── Auth toggle & password visibility ────────────────────────────────── */ -
dadsfam-email-smtp/trunk/dadsfam-email-smtp.php
r3733154 r3749022 4 4 * Plugin URI: https://plugins.dadsfam.co.za/ 5 5 * 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. 66 * Version: 2.1.7 7 7 * Requires at least: 6.0 8 8 * Requires PHP: 8.0 … … 49 49 50 50 // ── Constants ──────────────────────────────────────────────────────────────── 51 define( 'DFSMTP_VERSION', '2.1. 6' );51 define( 'DFSMTP_VERSION', '2.1.7' ); 52 52 define( 'DFSMTP_FILE', __FILE__ ); 53 53 define( 'DFSMTP_DIR', plugin_dir_path( __FILE__ ) ); -
dadsfam-email-smtp/trunk/includes/admin/pages/page-changelog.php
r3733154 r3749022 11 11 12 12 $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 ), 13 28 array( 14 29 'version' => '2.1.6', -
dadsfam-email-smtp/trunk/includes/admin/pages/page-logs.php
r3733154 r3749022 59 59 <option value="blocked" <?php selected( $dfsmtp_status, 'blocked' ); ?>><?php esc_html_e( 'Blocked', 'dadsfam-email-smtp' ); ?></option> 60 60 <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> 61 62 </select> 62 63 <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 143 143 </div> 144 144 <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> 147 148 </div> 148 149 <div class="dfsmtp-field"> -
dadsfam-email-smtp/trunk/includes/admin/pages/page-test.php
r3642053 r3749022 66 66 __( 'Encryption', 'dadsfam-email-smtp' ) => strtoupper( $dfsmtp_s['encryption'] ?? 'tls' ), 67 67 __( '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' ), 69 69 ); 70 70 foreach ( $dfsmtp_rows as $dfsmtp_k => $dfsmtp_v ) : -
dadsfam-email-smtp/trunk/includes/class-dfsmtp-abilities.php
r3681109 r3749022 248 248 'status' => array( 249 249 'type' => 'string', 250 'enum' => array( 'sent', 'failed' ),250 'enum' => array( 'sent', 'failed', 'blocked', 'suppressed', 'deferred' ), 251 251 ), 252 252 ), -
dadsfam-email-smtp/trunk/includes/class-dfsmtp-logger.php
r3714354 r3749022 28 28 class DFSMTP_Logger { 29 29 30 const TABLE_VERSION = ' 4';30 const TABLE_VERSION = '5'; 31 31 const OPT_TABLE_VER = 'dfsmtp_table_version'; 32 32 … … 37 37 */ 38 38 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 ); 39 49 40 50 private static ?DFSMTP_Logger $instance = null; … … 54 64 self::create_table(); 55 65 $this->maybe_upgrade_columns(); 66 $this->upgrade_statuses(); 56 67 update_option( self::OPT_TABLE_VER, self::TABLE_VERSION ); 57 68 } … … 119 130 } 120 131 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 121 148 private function table_exists(): bool { 122 149 global $wpdb; … … 149 176 } 150 177 178 $status = $success ? 'sent' : 'failed'; 179 if ( ! $success && isset( self::HELD_BACK[ $provider ] ) ) { 180 $status = self::HELD_BACK[ $provider ]; 181 } 182 151 183 global $wpdb; 152 184 $wpdb->insert( 153 185 $this->table, 154 186 array( 155 'status' => $s uccess ? 'sent' : 'failed',187 'status' => $status, 156 188 'subject' => mb_substr( $subject, 0, 500 ), 157 189 'to_email' => mb_substr( $to, 0, 500 ), … … 318 350 "SELECT * FROM {$this->table} 319 351 WHERE status='failed' AND retry_count < %d AND body != '' AND to_email != '' 352 AND provider NOT IN ('blocked','suppressed','rate-limited') 320 353 AND sent_at >= DATE_SUB( NOW(), INTERVAL %d MINUTE ) 321 354 ORDER BY id ASC LIMIT %d", … … 332 365 "SELECT * FROM {$this->table} 333 366 WHERE status='failed' AND retry_count < %d AND body != '' AND to_email != '' 367 AND provider NOT IN ('blocked','suppressed','rate-limited') 334 368 ORDER BY id ASC LIMIT %d", 335 369 $max_retries, -
dadsfam-email-smtp/trunk/includes/class-dfsmtp-mailer.php
r3714354 r3749022 275 275 $this->apply_common_headers( $m, $s ); 276 276 do_action( 'dfsmtp_after_configure_mailer', $m, $s ); 277 $this->note_reply_to( $m ); 277 278 return; 278 279 } 279 280 280 281 if ( empty( $s['host'] ) ) { 282 $this->note_reply_to( $m ); 281 283 return; // Not configured yet — leave WordPress to its default. 282 284 } … … 290 292 */ 291 293 do_action( 'dfsmtp_after_configure_mailer', $m, $s ); 294 295 $this->note_reply_to( $m ); 292 296 } 293 297 … … 295 299 * Reply-To and Return-Path apply regardless of which SMTP account was 296 300 * 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. 297 312 */ 298 313 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 } 304 326 } 305 327 } … … 307 329 $m->Sender = $s['return_path']; 308 330 } 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 ); 309 501 } 310 502 … … 596 788 '', 597 789 $atts['message'] ?? '', 598 $s['reply_to'] ?? ''790 self::logged_reply_to( (array) $atts, $s ) 599 791 ); 600 792 return true; // Silently drop. … … 617 809 '', 618 810 $atts['message'] ?? '', 619 $s['reply_to'] ?? ''811 self::logged_reply_to( (array) $atts, $s ) 620 812 ); 621 813 return true; // Report success so calling plugins do not error. … … 693 885 '', 694 886 $data['message'] ?? '', 695 $s['reply_to'] ?? ''887 self::logged_reply_to( $this->pending_mail, $s ) 696 888 ); 697 889 … … 707 899 708 900 public function on_failed( $error ): void { 901 // Start the next email on a fresh connection. See close_connection(). 902 self::close_connection(); 903 709 904 $logger = DFSMTP_Logger::instance(); 710 905 $s = $this->get_settings(); … … 732 927 '', 733 928 $mail['message'] ?? '', 734 $s['reply_to'] ?? ''929 self::logged_reply_to( $mail, $s ) 735 930 ); 736 931 … … 762 957 */ 763 958 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 } 764 981 } 765 982 … … 1007 1224 $this->begin_retry( (int) $log->id ); 1008 1225 } 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 1009 1234 $this->internal_send = true; 1010 1235 $result = wp_mail( … … 1012 1237 $log->subject, 1013 1238 $log->body, 1014 array( 'Content-Type: text/html; charset=UTF-8' )1239 $headers 1015 1240 ); 1016 1241 $this->internal_send = false; -
dadsfam-email-smtp/trunk/includes/class-dfsmtp-operations.php
r3681109 r3749022 344 344 $search = isset( $input['search'] ) ? sanitize_text_field( (string) $input['search'] ) : ''; 345 345 $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 ) ) { 347 347 $status = ''; 348 348 } -
dadsfam-email-smtp/trunk/languages/dadsfam-email-smtp.pot
r3733154 r3749022 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: DadsFam SMTP 2.1. 6\n"5 "Project-Id-Version: DadsFam SMTP 2.1.7\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/dadsfam-email-smtp\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "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" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.12.0\n" … … 21 21 #: includes/admin/pages/page-addons.php:14 22 22 #: includes/admin/pages/page-analytics.php:17 23 #: includes/admin/pages/page-changelog.php:2 6723 #: includes/admin/pages/page-changelog.php:282 24 24 #: includes/admin/pages/page-logs.php:46 25 25 #: includes/admin/pages/page-settings.php:17 … … 80 80 #: includes/admin/class-dfsmtp-admin.php:77 81 81 #: includes/admin/class-dfsmtp-admin.php:935 82 #: includes/admin/pages/page-changelog.php:2 6782 #: includes/admin/pages/page-changelog.php:282 83 83 msgid "Changelog" 84 84 msgstr "" … … 97 97 98 98 #: includes/admin/class-dfsmtp-admin.php:114 99 #: includes/admin/pages/page-logs.php:19 599 #: includes/admin/pages/page-logs.php:196 100 100 msgid "Email" 101 101 msgstr "" … … 118 118 119 119 #: includes/admin/class-dfsmtp-admin.php:119 120 #: includes/admin/pages/page-logs.php:10 3120 #: includes/admin/pages/page-logs.php:104 121 121 msgid "To" 122 122 msgstr "" … … 128 128 129 129 #: includes/admin/class-dfsmtp-admin.php:121 130 #: includes/admin/pages/page-test.php:68131 130 msgid "Reply-To" 132 131 msgstr "" 133 132 134 133 #: includes/admin/class-dfsmtp-admin.php:122 135 #: includes/admin/pages/page-logs.php:10 1134 #: includes/admin/pages/page-logs.php:102 136 135 msgid "Status" 137 136 msgstr "" … … 139 138 #: includes/admin/class-dfsmtp-admin.php:123 140 139 #: includes/admin/pages/page-analytics.php:104 141 #: includes/admin/pages/page-logs.php:10 4140 #: includes/admin/pages/page-logs.php:105 142 141 #: includes/admin/pages/page-settings.php:72 143 142 msgid "Connection" … … 145 144 146 145 #: includes/admin/class-dfsmtp-admin.php:124 147 #: includes/admin/pages/page-logs.php:1 09146 #: includes/admin/pages/page-logs.php:110 148 147 msgid "Sent at" 149 148 msgstr "" … … 162 161 163 162 #: includes/admin/class-dfsmtp-admin.php:128 164 #: includes/admin/pages/page-logs.php:19 6163 #: includes/admin/pages/page-logs.php:197 165 164 msgid "Close" 166 165 msgstr "" … … 375 374 376 375 #: includes/admin/pages/page-analytics.php:59 377 #: includes/admin/pages/page-logs.php:9 2376 #: includes/admin/pages/page-logs.php:93 378 377 msgid "Send a test email" 379 378 msgstr "" … … 404 403 405 404 #: includes/admin/pages/page-changelog.php:17 405 msgid "Replies go to the right person" 406 msgstr "" 407 408 #: includes/admin/pages/page-changelog.php:19 409 msgid "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." 410 msgstr "" 411 412 #: includes/admin/pages/page-changelog.php:20 413 msgid "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." 414 msgstr "" 415 416 #: includes/admin/pages/page-changelog.php:21 417 msgid "Fixed: resending an email from the log, and PRO's automatic retry, keep the email's original Reply-To." 418 msgstr "" 419 420 #: includes/admin/pages/page-changelog.php:22 421 msgid "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." 422 msgstr "" 423 424 #: includes/admin/pages/page-changelog.php:23 425 msgid "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." 426 msgstr "" 427 428 #: includes/admin/pages/page-changelog.php:24 429 msgid "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." 430 msgstr "" 431 432 #: includes/admin/pages/page-changelog.php:25 433 msgid "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." 434 msgstr "" 435 436 #: includes/admin/pages/page-changelog.php:32 406 437 msgid "The email log shows the email, every time" 407 438 msgstr "" 408 439 409 #: includes/admin/pages/page-changelog.php: 19440 #: includes/admin/pages/page-changelog.php:34 410 441 msgid "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." 411 442 msgstr "" 412 443 413 #: includes/admin/pages/page-changelog.php: 20444 #: includes/admin/pages/page-changelog.php:35 414 445 msgid "Fixed: the dark background behind an open email covered only part of the screen." 415 446 msgstr "" 416 447 417 #: includes/admin/pages/page-changelog.php: 21448 #: includes/admin/pages/page-changelog.php:36 418 449 msgid "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." 419 450 msgstr "" 420 451 421 #: includes/admin/pages/page-changelog.php: 22452 #: includes/admin/pages/page-changelog.php:37 422 453 msgid "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." 423 454 msgstr "" 424 455 425 #: includes/admin/pages/page-changelog.php: 23456 #: includes/admin/pages/page-changelog.php:38 426 457 msgid "Improved: links in the email open in a new tab, plain-text emails keep their line breaks, and the Escape key closes the window." 427 458 msgstr "" 428 459 429 #: includes/admin/pages/page-changelog.php: 24460 #: includes/admin/pages/page-changelog.php:39 430 461 msgid "Improved: this screen shows the newest release at the top, PRO releases included." 431 462 msgstr "" 432 463 433 #: includes/admin/pages/page-changelog.php: 31464 #: includes/admin/pages/page-changelog.php:46 434 465 msgid "One failed email stays one failed email" 435 466 msgstr "" 436 467 437 #: includes/admin/pages/page-changelog.php: 33468 #: includes/admin/pages/page-changelog.php:48 438 469 msgid "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." 439 470 msgstr "" 440 471 441 #: includes/admin/pages/page-changelog.php: 34472 #: includes/admin/pages/page-changelog.php:49 442 473 msgid "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." 443 474 msgstr "" 444 475 445 #: includes/admin/pages/page-changelog.php: 35476 #: includes/admin/pages/page-changelog.php:50 446 477 msgid "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." 447 478 msgstr "" 448 479 449 #: includes/admin/pages/page-changelog.php: 36480 #: includes/admin/pages/page-changelog.php:51 450 481 msgid "Changed: the Retries column in the email log shows a dash for an email that will not be retried." 451 482 msgstr "" 452 483 453 #: includes/admin/pages/page-changelog.php: 43484 #: includes/admin/pages/page-changelog.php:58 454 485 msgid "WordPress.org housekeeping" 455 486 msgstr "" 456 487 457 #: includes/admin/pages/page-changelog.php: 45488 #: includes/admin/pages/page-changelog.php:60 458 489 msgid "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." 459 490 msgstr "" 460 491 461 #: includes/admin/pages/page-changelog.php: 46492 #: includes/admin/pages/page-changelog.php:61 462 493 msgid "Added: a translation template, so the plugin can be translated." 463 494 msgstr "" 464 495 465 #: includes/admin/pages/page-changelog.php: 53496 #: includes/admin/pages/page-changelog.php:68 466 497 msgid "Emails other plugins stop now stay stopped" 467 498 msgstr "" 468 499 469 #: includes/admin/pages/page-changelog.php: 55500 #: includes/admin/pages/page-changelog.php:70 470 501 msgid "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." 471 502 msgstr "" 472 503 473 #: includes/admin/pages/page-changelog.php: 56504 #: includes/admin/pages/page-changelog.php:71 474 505 msgid "Tidied: removed an old translation-loading call. WordPress has loaded plugin translations by itself since version 4.6." 475 506 msgstr "" 476 507 477 #: includes/admin/pages/page-changelog.php: 63508 #: includes/admin/pages/page-changelog.php:78 478 509 msgid "Plugin page screenshots" 479 510 msgstr "" 480 511 481 #: includes/admin/pages/page-changelog.php: 65512 #: includes/admin/pages/page-changelog.php:80 482 513 msgid "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." 483 514 msgstr "" 484 515 485 #: includes/admin/pages/page-changelog.php: 72516 #: includes/admin/pages/page-changelog.php:87 486 517 msgid "More AI abilities, for when mail goes wrong" 487 518 msgstr "" 488 519 489 #: includes/admin/pages/page-changelog.php: 74520 #: includes/admin/pages/page-changelog.php:89 490 521 msgid "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." 491 522 msgstr "" 492 523 493 #: includes/admin/pages/page-changelog.php: 75524 #: includes/admin/pages/page-changelog.php:90 494 525 msgid "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." 495 526 msgstr "" 496 527 497 #: includes/admin/pages/page-changelog.php: 76528 #: includes/admin/pages/page-changelog.php:91 498 529 msgid "Added: list the failed emails still waiting to be retried, with the error that stopped each one. Retrying itself remains a PRO feature." 499 530 msgstr "" 500 531 501 #: includes/admin/pages/page-changelog.php: 77532 #: includes/admin/pages/page-changelog.php:92 502 533 msgid "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." 503 534 msgstr "" 504 535 505 #: includes/admin/pages/page-changelog.php: 78536 #: includes/admin/pages/page-changelog.php:93 506 537 msgid "Added: a single support report gathering versions, configuration, the SPF, DKIM and DMARC checks and recent sending statistics." 507 538 msgstr "" 508 539 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 543 msgid "No changes to how the plugin sends, logs or tests email." 544 msgstr "" 545 546 #: includes/admin/pages/page-changelog.php:101 547 msgid "Packaging fix" 548 msgstr "" 549 550 #: includes/admin/pages/page-changelog.php:103 551 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." 552 msgstr "" 553 511 554 #: 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:86516 msgid "Packaging fix"517 msgstr ""518 519 #: includes/admin/pages/page-changelog.php:88520 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:95524 555 msgid "AI assistant support (WordPress Abilities API)" 525 556 msgstr "" 526 557 527 #: includes/admin/pages/page-changelog.php: 97558 #: includes/admin/pages/page-changelog.php:112 528 559 msgid "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)." 529 560 msgstr "" 530 561 531 #: includes/admin/pages/page-changelog.php: 98562 #: includes/admin/pages/page-changelog.php:113 532 563 msgid "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." 533 564 msgstr "" 534 565 535 #: includes/admin/pages/page-changelog.php: 99566 #: includes/admin/pages/page-changelog.php:114 536 567 msgid "On WordPress versions without the Abilities API, nothing changes and the plugin works exactly as before." 537 568 msgstr "" 538 569 539 #: includes/admin/pages/page-changelog.php:1 07570 #: includes/admin/pages/page-changelog.php:122 540 571 msgid "A word about PRO" 541 572 msgstr "" 542 573 543 #: includes/admin/pages/page-changelog.php:1 09574 #: includes/admin/pages/page-changelog.php:124 544 575 msgid "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." 545 576 msgstr "" 546 577 547 #: includes/admin/pages/page-changelog.php:1 17578 #: includes/admin/pages/page-changelog.php:132 548 579 msgid "Uninstall cleanup made precise and multisite-aware" 549 580 msgstr "" 550 581 551 #: includes/admin/pages/page-changelog.php:1 19582 #: includes/admin/pages/page-changelog.php:134 552 583 msgid "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." 553 584 msgstr "" 554 585 555 #: includes/admin/pages/page-changelog.php:1 20586 #: includes/admin/pages/page-changelog.php:135 556 587 msgid "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." 557 588 msgstr "" 558 589 559 #: includes/admin/pages/page-changelog.php:1 27590 #: includes/admin/pages/page-changelog.php:142 560 591 msgid "Import hardening and directory compliance" 561 592 msgstr "" 562 593 563 #: includes/admin/pages/page-changelog.php:1 29594 #: includes/admin/pages/page-changelog.php:144 564 595 msgid "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" 565 596 msgstr "" 566 597 567 #: includes/admin/pages/page-changelog.php:1 30598 #: includes/admin/pages/page-changelog.php:145 568 599 msgid "Added: an External services section to the readme setting out what is sent to your SMTP provider, when and where" 569 600 msgstr "" 570 601 571 #: includes/admin/pages/page-changelog.php:1 31602 #: includes/admin/pages/page-changelog.php:146 572 603 msgid "Fixed: the plugin header pointed at a page that did not exist" 573 604 msgstr "" 574 605 575 #: includes/admin/pages/page-changelog.php:1 32606 #: includes/admin/pages/page-changelog.php:147 576 607 msgid "Changed: the text domain now matches the plugin slug so the community translation tools can pick it up" 577 608 msgstr "" 578 609 579 #: includes/admin/pages/page-changelog.php:1 39610 #: includes/admin/pages/page-changelog.php:154 580 611 msgid "Stored password hardening" 581 612 msgstr "" 582 613 583 #: includes/admin/pages/page-changelog.php:1 41614 #: includes/admin/pages/page-changelog.php:156 584 615 msgid "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." 585 616 msgstr "" 586 617 587 #: includes/admin/pages/page-changelog.php:1 42618 #: includes/admin/pages/page-changelog.php:157 588 619 msgid "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." 589 620 msgstr "" 590 621 591 #: includes/admin/pages/page-changelog.php:1 43622 #: includes/admin/pages/page-changelog.php:158 592 623 msgid "Changed: uninstall clears everything under this plugin's own prefix generically rather than listing add-on option names." 593 624 msgstr "" 594 625 595 #: includes/admin/pages/page-changelog.php:1 50626 #: includes/admin/pages/page-changelog.php:165 596 627 msgid "Accurate WooCommerce log labelling" 597 628 msgstr "" 598 629 599 #: includes/admin/pages/page-changelog.php:1 52630 #: includes/admin/pages/page-changelog.php:167 600 631 msgid "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." 601 632 msgstr "" 602 633 603 #: includes/admin/pages/page-changelog.php:1 53634 #: includes/admin/pages/page-changelog.php:168 604 635 msgid "Fixed: failed sends now record the WooCommerce email type, so a failed order email can be told apart from other failures." 605 636 msgstr "" 606 637 607 #: includes/admin/pages/page-changelog.php:1 60638 #: includes/admin/pages/page-changelog.php:175 608 639 msgid "Version alignment" 609 640 msgstr "" 610 641 611 #: includes/admin/pages/page-changelog.php:1 62642 #: includes/admin/pages/page-changelog.php:177 612 643 msgid "Version number aligned with the separate PRO add-on. No functional change to this plugin." 613 644 msgstr "" 614 645 615 #: includes/admin/pages/page-changelog.php:1 69646 #: includes/admin/pages/page-changelog.php:184 616 647 msgid "PHP 8.4 readiness" 617 648 msgstr "" 618 649 619 #: includes/admin/pages/page-changelog.php:1 71650 #: includes/admin/pages/page-changelog.php:186 620 651 msgid "Fixed: the connection tester used an implicitly nullable parameter, deprecated in PHP 8.4." 621 652 msgstr "" 622 653 623 #: includes/admin/pages/page-changelog.php:1 72654 #: includes/admin/pages/page-changelog.php:187 624 655 msgid "Fixed: CSV export passes the fputcsv() escape argument explicitly, producing RFC 4180 output that spreadsheets read correctly." 625 656 msgstr "" 626 657 627 #: includes/admin/pages/page-changelog.php:1 73658 #: includes/admin/pages/page-changelog.php:188 628 659 msgid "Verified against PHP 8.0 through 8.4 and WordPress 7.0." 629 660 msgstr "" 630 661 631 #: includes/admin/pages/page-changelog.php:1 80662 #: includes/admin/pages/page-changelog.php:195 632 663 msgid "Core / add-on split and three delivery fixes" 633 664 msgstr "" 634 665 635 #: includes/admin/pages/page-changelog.php:1 82666 #: includes/admin/pages/page-changelog.php:197 636 667 msgid "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." 637 668 msgstr "" 638 669 639 #: includes/admin/pages/page-changelog.php:1 83670 #: includes/admin/pages/page-changelog.php:198 640 671 msgid "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." 641 672 msgstr "" 642 673 643 #: includes/admin/pages/page-changelog.php:1 84674 #: includes/admin/pages/page-changelog.php:199 644 675 msgid "Fixed: the suppression list now matches whole addresses and domains instead of loose substrings, so a short entry can no longer block unrelated recipients." 645 676 msgstr "" 646 677 647 #: includes/admin/pages/page-changelog.php: 185678 #: includes/admin/pages/page-changelog.php:200 648 679 msgid "Fixed: uninstall now removes every option the plugin creates, including the log table version marker." 649 680 msgstr "" 650 681 651 #: includes/admin/pages/page-changelog.php: 186682 #: includes/admin/pages/page-changelog.php:201 652 683 msgid "Fixed: the log table is created with all columns present rather than relying on a later migration." 653 684 msgstr "" 654 685 655 #: includes/admin/pages/page-changelog.php: 187686 #: includes/admin/pages/page-changelog.php:202 656 687 msgid "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." 657 688 msgstr "" 658 689 659 #: includes/admin/pages/page-changelog.php: 188690 #: includes/admin/pages/page-changelog.php:203 660 691 msgid "Changed: CSV export and the full email body viewer are available on every site." 661 692 msgstr "" 662 693 663 #: includes/admin/pages/page-changelog.php: 189694 #: includes/admin/pages/page-changelog.php:204 664 695 msgid "Changed: the plugin no longer overrides the WordPress core \"weekly\" cron schedule." 665 696 msgstr "" 666 697 667 #: includes/admin/pages/page-changelog.php: 190698 #: includes/admin/pages/page-changelog.php:205 668 699 msgid "New: a documented hook API so add-ons can extend the send pipeline and admin screens cleanly." 669 700 msgstr "" 670 701 671 #: includes/admin/pages/page-changelog.php: 191702 #: includes/admin/pages/page-changelog.php:206 672 703 msgid "New: admin styles are served from a proper enqueued stylesheet rather than an inline style block." 673 704 msgstr "" 674 705 675 #: includes/admin/pages/page-changelog.php: 192706 #: includes/admin/pages/page-changelog.php:207 676 707 msgid "Upgrading from 1.6.x keeps every setting and log entry — the folder name and option keys are unchanged." 677 708 msgstr "" 678 709 679 #: includes/admin/pages/page-changelog.php: 199710 #: includes/admin/pages/page-changelog.php:214 680 711 msgid "Routing and logging refinements" 681 712 msgstr "" 682 713 683 #: includes/admin/pages/page-changelog.php:2 01714 #: includes/admin/pages/page-changelog.php:216 684 715 msgid "Routing rules with an empty match value are skipped instead of capturing every email." 685 716 msgstr "" 686 717 687 #: includes/admin/pages/page-changelog.php:2 02718 #: includes/admin/pages/page-changelog.php:217 688 719 msgid "WooCommerce email detection moved to a hook-based flag consumed by a single outgoing email." 689 720 msgstr "" 690 721 691 #: includes/admin/pages/page-changelog.php:2 03722 #: includes/admin/pages/page-changelog.php:218 692 723 msgid "The log list view no longer selects the body column, preventing memory exhaustion on large logs." 693 724 msgstr "" 694 725 695 #: includes/admin/pages/page-changelog.php:2 10726 #: includes/admin/pages/page-changelog.php:225 696 727 msgid "Email health score" 697 728 msgstr "" 698 729 699 #: includes/admin/pages/page-changelog.php:2 12730 #: includes/admin/pages/page-changelog.php:227 700 731 msgid "New deliverability score combining DNS authentication, configuration and real send history." 701 732 msgstr "" 702 733 703 #: includes/admin/pages/page-changelog.php:2 13734 #: includes/admin/pages/page-changelog.php:228 704 735 msgid "Dashboard widget showing sent, failed and success rate at a glance." 705 736 msgstr "" 706 737 707 #: includes/admin/pages/page-changelog.php:2 20738 #: includes/admin/pages/page-changelog.php:235 708 739 msgid "Backup, migrate and setup wizard" 709 740 msgstr "" 710 741 711 #: includes/admin/pages/page-changelog.php:2 22742 #: includes/admin/pages/page-changelog.php:237 712 743 msgid "Export and import your configuration as JSON. Passwords are never included." 713 744 msgstr "" 714 745 715 #: includes/admin/pages/page-changelog.php:2 23746 #: includes/admin/pages/page-changelog.php:238 716 747 msgid "Guided first-run setup for new installations." 717 748 msgstr "" 718 749 719 #: includes/admin/pages/page-changelog.php:2 30750 #: includes/admin/pages/page-changelog.php:245 720 751 msgid "Delivery controls" 721 752 msgstr "" 722 753 723 #: includes/admin/pages/page-changelog.php:2 32754 #: includes/admin/pages/page-changelog.php:247 724 755 msgid "Blocking mode stops all outgoing email on staging copies while still logging every attempt." 725 756 msgstr "" 726 757 727 #: includes/admin/pages/page-changelog.php:2 33758 #: includes/admin/pages/page-changelog.php:248 728 759 msgid "Suppression list for addresses and domains that must never be contacted." 729 760 msgstr "" 730 761 731 #: includes/admin/pages/page-changelog.php:2 34762 #: includes/admin/pages/page-changelog.php:249 732 763 msgid "Deliverability checker for SPF, DKIM, DMARC and MX records." 733 764 msgstr "" 734 765 735 #: includes/admin/pages/page-changelog.php:2 41766 #: includes/admin/pages/page-changelog.php:256 736 767 msgid "First release" 737 768 msgstr "" 738 769 739 #: includes/admin/pages/page-changelog.php:2 43770 #: includes/admin/pages/page-changelog.php:258 740 771 msgid "SMTP delivery with 13 pre-configured providers and AES-256-CBC encrypted credentials." 741 772 msgstr "" 742 773 743 #: includes/admin/pages/page-changelog.php:2 44774 #: includes/admin/pages/page-changelog.php:259 744 775 msgid "Full email logging with one-click resend." 745 776 msgstr "" 746 777 747 #: includes/admin/pages/page-changelog.php:2 45778 #: includes/admin/pages/page-changelog.php:260 748 779 msgid "Live send test with real SMTP diagnostic output." 749 780 msgstr "" 750 781 751 #: includes/admin/pages/page-changelog.php:2 71782 #: includes/admin/pages/page-changelog.php:286 752 783 msgid "Release History" 753 784 msgstr "" 754 785 755 786 #. translators: %s: current plugin version 756 #: includes/admin/pages/page-changelog.php:2 76787 #: includes/admin/pages/page-changelog.php:291 757 788 #, php-format 758 789 msgid "You are running version %s." … … 775 806 msgstr "" 776 807 777 #: includes/admin/pages/page-logs.php:62 808 #: includes/admin/pages/page-logs.php:61 809 msgid "Deferred" 810 msgstr "" 811 812 #: includes/admin/pages/page-logs.php:63 778 813 msgid "Search" 779 814 msgstr "" 780 815 781 #: includes/admin/pages/page-logs.php:6 4816 #: includes/admin/pages/page-logs.php:65 782 817 msgid "Clear" 783 818 msgstr "" 784 819 785 #: includes/admin/pages/page-logs.php:6 8820 #: includes/admin/pages/page-logs.php:69 786 821 msgid "Export CSV" 787 822 msgstr "" 788 823 789 #: includes/admin/pages/page-logs.php: 69824 #: includes/admin/pages/page-logs.php:70 790 825 msgid "Clear all" 791 826 msgstr "" 792 827 793 828 #. translators: %s: search term 794 #: includes/admin/pages/page-logs.php:8 3829 #: includes/admin/pages/page-logs.php:84 795 830 #, php-format 796 831 msgid "No logs matching %s." 797 832 msgstr "" 798 833 799 #: includes/admin/pages/page-logs.php:8 7834 #: includes/admin/pages/page-logs.php:88 800 835 msgid "No email logs yet." 801 836 msgstr "" 802 837 803 #: includes/admin/pages/page-logs.php:9 3838 #: includes/admin/pages/page-logs.php:94 804 839 msgid "to see entries appear here." 805 840 msgstr "" 806 841 807 #: includes/admin/pages/page-logs.php:10 2842 #: includes/admin/pages/page-logs.php:103 808 843 msgid "Subject" 809 844 msgstr "" 810 845 811 #: includes/admin/pages/page-logs.php:10 8846 #: includes/admin/pages/page-logs.php:109 812 847 msgid "Retries" 813 848 msgstr "" 814 849 815 #: includes/admin/pages/page-logs.php:11 0850 #: includes/admin/pages/page-logs.php:111 816 851 msgid "Actions" 817 852 msgstr "" 818 853 819 #: includes/admin/pages/page-logs.php:1 39854 #: includes/admin/pages/page-logs.php:140 820 855 msgid "Not retried: this email has no valid recipient." 821 856 msgstr "" 822 857 823 #: includes/admin/pages/page-logs.php:14 3858 #: includes/admin/pages/page-logs.php:144 824 859 msgid "View" 825 860 msgstr "" 826 861 827 #: includes/admin/pages/page-logs.php:14 4862 #: includes/admin/pages/page-logs.php:145 828 863 msgid "Resend" 829 864 msgstr "" 830 865 831 #: includes/admin/pages/page-logs.php:14 5866 #: includes/admin/pages/page-logs.php:146 832 867 msgid "Delete" 833 868 msgstr "" 834 869 835 870 #. translators: %s: total number of log entries 836 #: includes/admin/pages/page-logs.php:18 3871 #: includes/admin/pages/page-logs.php:184 837 872 #, php-format 838 873 msgid "%s entries" … … 954 989 955 990 #: includes/admin/pages/page-settings.php:145 956 msgid " Reply-To email"991 msgid "Default Reply-To email" 957 992 msgstr "" 958 993 959 994 #: 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 995 msgid "Optional" 996 msgstr "" 997 998 #: includes/admin/pages/page-settings.php:147 999 msgid "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." 1000 msgstr "" 1001 1002 #: includes/admin/pages/page-settings.php:150 964 1003 msgid "Return-Path / envelope sender" 965 1004 msgstr "" 966 1005 967 #: includes/admin/pages/page-settings.php:15 01006 #: includes/admin/pages/page-settings.php:151 968 1007 msgid "Optional — used for bounce tracking" 969 1008 msgstr "" 970 1009 971 #: includes/admin/pages/page-settings.php:15 11010 #: includes/admin/pages/page-settings.php:152 972 1011 msgid "Must match your SMTP sender domain." 973 1012 msgstr "" 974 1013 975 #: includes/admin/pages/page-settings.php:15 81014 #: includes/admin/pages/page-settings.php:159 976 1015 msgid "Logging & Alerts" 977 1016 msgstr "" 978 1017 979 #: includes/admin/pages/page-settings.php:16 21018 #: includes/admin/pages/page-settings.php:163 980 1019 msgid "Enable email logging" 981 1020 msgstr "" 982 1021 983 #: includes/admin/pages/page-settings.php:16 41022 #: includes/admin/pages/page-settings.php:165 984 1023 msgid "Every send is recorded in full, with no entry limit." 985 1024 msgstr "" 986 1025 987 #: includes/admin/pages/page-settings.php:16 71026 #: includes/admin/pages/page-settings.php:168 988 1027 msgid "Keep logs for (days)" 989 1028 msgstr "" 990 1029 991 #: includes/admin/pages/page-settings.php:1 691030 #: includes/admin/pages/page-settings.php:170 992 1031 msgid "Older entries are purged daily. Set to 0 to keep everything forever." 993 1032 msgstr "" 994 1033 995 #: includes/admin/pages/page-settings.php:17 41034 #: includes/admin/pages/page-settings.php:175 996 1035 msgid "Email me when a delivery fails" 997 1036 msgstr "" 998 1037 999 1038 #. translators: %s: admin email address 1000 #: includes/admin/pages/page-settings.php:18 01039 #: includes/admin/pages/page-settings.php:181 1001 1040 #, php-format 1002 1041 msgid "Alerts are sent to %s." 1003 1042 msgstr "" 1004 1043 1005 #: includes/admin/pages/page-settings.php:1 891044 #: includes/admin/pages/page-settings.php:190 1006 1045 msgid "Delivery Controls" 1007 1046 msgstr "" 1008 1047 1009 #: includes/admin/pages/page-settings.php:19 31048 #: includes/admin/pages/page-settings.php:194 1010 1049 msgid "Block all outgoing email (staging mode)" 1011 1050 msgstr "" 1012 1051 1013 #: includes/admin/pages/page-settings.php:19 51052 #: includes/admin/pages/page-settings.php:196 1014 1053 msgid "Nothing is delivered, but every attempt is still logged. Ideal for staging and development copies of a live site." 1015 1054 msgstr "" 1016 1055 1017 #: includes/admin/pages/page-settings.php:19 81056 #: includes/admin/pages/page-settings.php:199 1018 1057 msgid "Suppression list" 1019 1058 msgstr "" 1020 1059 1021 #: includes/admin/pages/page-settings.php:20 01060 #: includes/admin/pages/page-settings.php:201 1022 1061 msgid "One entry per line. Use a full address to block that address, or start with @ to block a whole domain." 1023 1062 msgstr "" 1024 1063 1025 #: includes/admin/pages/page-settings.php:20 61064 #: includes/admin/pages/page-settings.php:207 1026 1065 msgid "Advanced" 1027 1066 msgstr "" 1028 1067 1029 #: includes/admin/pages/page-settings.php:20 81068 #: includes/admin/pages/page-settings.php:209 1030 1069 msgid "Default DKIM selector" 1031 1070 msgstr "" 1032 1071 1033 #: includes/admin/pages/page-settings.php:21 01072 #: includes/admin/pages/page-settings.php:211 1034 1073 msgid "Used by the deliverability checker and health score. cPanel: default · Microsoft 365: selector1 · Google Workspace: google · SendGrid: s1" 1035 1074 msgstr "" 1036 1075 1037 #: includes/admin/pages/page-settings.php:21 41076 #: includes/admin/pages/page-settings.php:215 1038 1077 msgid "Keep all settings and logs if this plugin is deleted" 1039 1078 msgstr "" 1040 1079 1041 #: includes/admin/pages/page-settings.php:22 81080 #: includes/admin/pages/page-settings.php:229 1042 1081 msgid "Save settings" 1043 1082 msgstr "" … … 1097 1136 #: includes/admin/pages/page-test.php:65 1098 1137 msgid "Not configured" 1138 msgstr "" 1139 1140 #: includes/admin/pages/page-test.php:68 1141 msgid "Default Reply-To" 1099 1142 msgstr "" 1100 1143 … … 1450 1493 msgstr "" 1451 1494 1452 #: includes/class-dfsmtp-mailer.php: 7781495 #: includes/class-dfsmtp-mailer.php:995 1453 1496 msgid "(nobody: the email had no recipient address)" 1454 1497 msgstr "" 1455 1498 1456 #: includes/class-dfsmtp-mailer.php: 7861499 #: includes/class-dfsmtp-mailer.php:1003 1457 1500 msgid "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." 1458 1501 msgstr "" -
dadsfam-email-smtp/trunk/readme.txt
r3733154 r3749022 5 5 Tested up to: 7.1 6 6 Requires PHP: 8.0 7 Stable tag: 2.1. 67 Stable tag: 2.1.7 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 117 117 No. 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. 118 118 119 = Replies to my contact form go to me as well as the visitor. = 120 121 Update 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 119 123 = How do I stop a staging site emailing real customers? = 120 124 … … 156 160 157 161 == 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. 158 171 159 172 = 2.1.6 = … … 270 283 == Upgrade Notice == 271 284 285 = 2.1.7 = 286 Replies 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 272 288 = 2.1.6 = 273 289 Fixes 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.