Make WordPress Core


Ignore:
Timestamp:
01/27/2026 05:53:30 PM (5 months ago)
Author:
jorbin
Message:

Mail: Revert Set sender address by default.

This reverts [61010]. Setting the sender address by default has shown to reduce deliverability for emails for sites that were working correctly in 6.8 and before. As reduced deliverability can harm IP reputation which means it's not just the single WordPress install that is harmed, [61010] is being reverted out of an abundance of caution.

Follow up to [61010].

Props jorbin, dmsnell, SirLouen, wildworks, desrosj, siliconforks, digitalblanket, studiomondiale, zoe20, Monarobase, amanandhishoe,
Fixes #64368.See #49687.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/pluggable.php

    r61459 r61537  
    447447
    448448        try {
    449             $phpmailer->setFrom( $from_email, $from_name );
     449            $phpmailer->setFrom( $from_email, $from_name, false );
    450450        } catch ( PHPMailer\PHPMailer\Exception $e ) {
    451451            $mail_error_data                             = compact( 'to', 'subject', 'message', 'headers', 'attachments' );
Note: See TracChangeset for help on using the changeset viewer.