Skip to content

Commit

Permalink
Merge branch 'hotfix-41524' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
jimyhuang committed Sep 3, 2024
2 parents 7636d17 + 11357f9 commit 248cf24
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CRM/Mailing/BAO/Job.php
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,7 @@ public function deliverGroup(&$fields, &$mailing, &$mailer, &$job_date, &$attach
}

// refs #30289, for valid DKIM
if (empty(CRM_Core_Config::singleton()->enableDMARC) && empty($headers['Sender']) && !empty($mailer->_mailSetting['return_path'])) {
if (empty($headers['Sender']) && !empty($mailer->_mailSetting['return_path'])) {
$headers['Sender'] = $mailer->_mailSetting['return_path'];
}

Expand Down
2 changes: 1 addition & 1 deletion CRM/Mailing/BAO/Transactional.php
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ public static function send(&$params, $callback = NULL) {
CRM_Core_Error::ignoreException();

// refs #30289, for valid DKIM
if (empty(CRM_Core_Config::singleton()->enableDMARC) && empty($headers['Sender']) && !empty($mailer->_mailSetting['return_path'])) {
if (empty($headers['Sender']) && !empty($mailer->_mailSetting['return_path'])) {
$headers['Sender'] = $mailer->_mailSetting['return_path'];
}

Expand Down
2 changes: 1 addition & 1 deletion CRM/Utils/Mail.php
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ static function send(&$params, $callback = NULL) {
CRM_Core_Error::ignoreException();
if (is_object($mailer)) {
// refs #30289, for valid DKIM
if (empty(CRM_Core_Config::singleton()->enableDMARC) && empty($headers['Sender']) && !empty($mailer->_mailSetting['return_path'])) {
if (empty($headers['Sender']) && !empty($mailer->_mailSetting['return_path'])) {
$headers['Sender'] = $mailer->_mailSetting['return_path'];
$headers['Return-Path'] = $mailer->_mailSetting['return_path'];
}
Expand Down

0 comments on commit 248cf24

Please sign in to comment.