-
-
Notifications
You must be signed in to change notification settings - Fork 825
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Towards CRM-17753 - consolidate code location for do-not-reply@mydomain.com #12270
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -173,8 +173,6 @@ public static function send($queue_id, &$mailing, &$bodyTxt, $replyto, &$bodyHTM | |
} | ||
} | ||
else { | ||
$emailDomain = CRM_Core_BAO_MailSettings::defaultDomain(); | ||
|
||
if (empty($eq->display_name)) { | ||
$from = $eq->email; | ||
} | ||
|
@@ -189,7 +187,7 @@ public static function send($queue_id, &$mailing, &$bodyTxt, $replyto, &$bodyHTM | |
'To' => $mailing->replyto_email, | ||
'From' => $from, | ||
'Reply-To' => empty($replyto) ? $eq->email : $replyto, | ||
'Return-Path' => "do-not-reply@{$emailDomain}", | ||
'Return-Path' => CRM_Core_BAO_Domain::getNoReplyEmailAddress(), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @eileenmcnaughton you need to remove
above at line 176 |
||
// CRM-17754 Include re-sent headers to indicate that we have forwarded on the email | ||
'Resent-From' => $domainValues['values'][0]['from_email'], | ||
'Resent-Date' => date('r'), | ||
|
@@ -253,14 +251,12 @@ private static function autoRespond(&$mailing, $queue_id, $replyto) { | |
$domain = CRM_Core_BAO_Domain::getDomain(); | ||
list($domainEmailName, $_) = CRM_Core_BAO_Domain::getNameAndEmail(); | ||
|
||
$emailDomain = CRM_Core_BAO_MailSettings::defaultDomain(); | ||
|
||
$headers = array( | ||
'Subject' => $component->subject, | ||
'To' => $to, | ||
'From' => "\"$domainEmailName\" <do-not-reply@$emailDomain>", | ||
'Reply-To' => "do-not-reply@$emailDomain", | ||
'Return-Path' => "do-not-reply@$emailDomain", | ||
'From' => "\"$domainEmailName\" <" . CRM_Core_BAO_Domain::getNoReplyEmailAddress() . '>', | ||
'Reply-To' => CRM_Core_BAO_Domain::getNoReplyEmailAddress(), | ||
'Return-Path' => CRM_Core_BAO_Domain::getNoReplyEmailAddress(), | ||
); | ||
|
||
// TODO: do we need reply tokens? | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -227,7 +227,7 @@ public function send_confirm_request($email) { | |
'From' => "\"{$domainEmailName}\" <{$domainEmailAddress}>", | ||
'To' => $email, | ||
'Reply-To' => $confirm, | ||
'Return-Path' => "do-not-reply@$emailDomain", | ||
'Return-Path' => CRM_Core_BAO_Domain::getNoReplyEmailAddress(), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @eileenmcnaughton you need to remove
above at line 203 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I updated the others - but this one is still used There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh ok |
||
); | ||
|
||
$url = CRM_Utils_System::url('civicrm/mailing/confirm', | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@eileenmcnaughton you need to remove
above at line 121