Make WordPress Core


Ignore:
Timestamp:
01/28/2026 09:15:37 PM (3 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].

Reviewed by audrasjb, wildworks.
Merges [61537] to the 6.9 branch.

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

Location:
branches/6.9
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/6.9

  • branches/6.9/src/wp-includes/pluggable.php

    r61547 r61549  
    445445
    446446        try {
    447             $phpmailer->setFrom( $from_email, $from_name );
     447            $phpmailer->setFrom( $from_email, $from_name, false );
    448448        } catch ( PHPMailer\PHPMailer\Exception $e ) {
    449449            $mail_error_data                             = compact( 'to', 'subject', 'message', 'headers', 'attachments' );
Note: See TracChangeset for help on using the changeset viewer.