Skip to content

Commit 316f5c2

Browse files
committed
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. Built from https://develop.svn.wordpress.org/branches/6.9@61549 git-svn-id: http://core.svn.wordpress.org/branches/6.9@60860 1a063a9b-81f0-0310-95a4-ce76da25c4cd
1 parent 2ec621e commit 316f5c2

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

wp-includes/pluggable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ function wp_mail( $to, $subject, $message, $headers = '', $attachments = array()
444444
$from_name = apply_filters( 'wp_mail_from_name', $from_name );
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' );
450450
$mail_error_data['phpmailer_exception_code'] = $e->getCode();

wp-includes/version.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*
1717
* @global string $wp_version
1818
*/
19-
$wp_version = '6.9.1-alpha-61548';
19+
$wp_version = '6.9.1-alpha-61549';
2020

2121
/**
2222
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.

0 commit comments

Comments
 (0)