Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #33972, comment 22


Ignore:
Timestamp:
09/08/2025 05:51:56 PM (6 months ago)
Author:
sajjad67
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #33972, comment 22

    initial v1  
    11= Failed Test Report =
    22
    3 When testing email sending in WordPress with small email bodies (length < 1000 characters) using MailPit/MailHog, email sending fails with the error:
     3When testing email sending in WordPress with small email bodies (length < 1000 characters) using MailPit/mailpit, email sending fails with the error:
    44
    55{{{
     
    2626**Email Testing Plugin** (custom):
    2727{{{
    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   */
    2937
    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 ) {
    3144    $phpmailer->isSMTP();
    3245    $phpmailer->SMTPAuth    = false;
     
    6578    ?>
    6679    <div class="wrap">
    67       <h1>MailHog Email Test</h1>
     80      <h1>Mailpit Email Test</h1>
    6881
    6982      <?php