Changes between Initial Version and Version 1 of Ticket #33972, comment 22
- Timestamp:
- 09/08/2025 05:51:56 PM (6 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #33972, comment 22
initial v1 1 1 = Failed Test Report = 2 2 3 When testing email sending in WordPress with small email bodies (length < 1000 characters) using MailPit/ MailHog, email sending fails with the error:3 When testing email sending in WordPress with small email bodies (length < 1000 characters) using MailPit/mailpit, email sending fails with the error: 4 4 5 5 {{{ … … 26 26 **Email Testing Plugin** (custom): 27 27 {{{ 28 add_action( 'phpmailer_init', 'configure_mailhog_for_testing' ); 28 <?php // phpcs:ignoreFile 29 /** 30 * Plugin Name: Email Testing 31 * Description: Routes WordPress emails to mailpit for testing 32 * Author: Sajjad Hossain Sagor 33 * Version: 1.0.0 34 * License: GPL-2.0+ 35 * Text Domain: email-testing 36 */ 29 37 30 function configure_mailhog_for_testing( $phpmailer ) { 38 if ( ! defined( 'ABSPATH' ) ) { 39 exit; 40 } 41 add_action( 'phpmailer_init', 'configure_mailpit_for_testing' ); 42 43 function configure_mailpit_for_testing( $phpmailer ) { 31 44 $phpmailer->isSMTP(); 32 45 $phpmailer->SMTPAuth = false; … … 65 78 ?> 66 79 <div class="wrap"> 67 <h1>Mail HogEmail Test</h1>80 <h1>Mailpit Email Test</h1> 68 81 69 82 <?php