Skip to content
Snippets Groups Projects
Commit 8b864940 authored by Kurund Jalmi's avatar Kurund Jalmi
Browse files

Merge pull request #1247 from dlobo/CRM-13057

CRM-13057
parents 5419ad39 fb18363b
No related branches found
No related tags found
No related merge requests found
...@@ -72,8 +72,8 @@ class CRM_Mailing_Event_BAO_Reply extends CRM_Mailing_Event_DAO_Reply { ...@@ -72,8 +72,8 @@ class CRM_Mailing_Event_BAO_Reply extends CRM_Mailing_Event_DAO_Reply {
$mailings = CRM_Mailing_BAO_Mailing::getTableName(); $mailings = CRM_Mailing_BAO_Mailing::getTableName();
$jobs = CRM_Mailing_BAO_Job::getTableName(); $jobs = CRM_Mailing_BAO_Job::getTableName();
$mailing->query( $mailing->query(
"SELECT * FROM $mailings "SELECT * FROM $mailings
INNER JOIN $jobs INNER JOIN $jobs
ON $jobs.mailing_id = $mailings.id ON $jobs.mailing_id = $mailings.id
WHERE $jobs.id = {$q->job_id}" WHERE $jobs.id = {$q->job_id}"
); );
...@@ -135,7 +135,7 @@ class CRM_Mailing_Event_BAO_Reply extends CRM_Mailing_Event_DAO_Reply { ...@@ -135,7 +135,7 @@ class CRM_Mailing_Event_BAO_Reply extends CRM_Mailing_Event_DAO_Reply {
// CRM-5567: we need to set Reply-To: so that any response // CRM-5567: we need to set Reply-To: so that any response
// to the forward goes to the sender of the reply // to the forward goes to the sender of the reply
$parsed->setHeader('Reply-To', $replyto instanceof ezcMailAddress ? $parsed->from->__toString() : $replyto); $parsed->setHeader('Reply-To', $replyto instanceof ezcMailAddress ? $replyto : $parsed->from->__toString());
// $h must be an array, so we can't use generateHeaders()'s result, // $h must be an array, so we can't use generateHeaders()'s result,
// but we have to regenerate the headers because we changed To // but we have to regenerate the headers because we changed To
...@@ -173,7 +173,7 @@ class CRM_Mailing_Event_BAO_Reply extends CRM_Mailing_Event_DAO_Reply { ...@@ -173,7 +173,7 @@ class CRM_Mailing_Event_BAO_Reply extends CRM_Mailing_Event_DAO_Reply {
'Subject' => "Re: {$mailing->subject}", 'Subject' => "Re: {$mailing->subject}",
'To' => $mailing->replyto_email, 'To' => $mailing->replyto_email,
'From' => $from, 'From' => $from,
'Reply-To' => empty($replyto) ? $dao->email : $replyto, 'Reply-To' => empty($replyto) ? $eq->email : $replyto,
'Return-Path' => "do-not-reply@{$emailDomain}", 'Return-Path' => "do-not-reply@{$emailDomain}",
); );
......
...@@ -162,7 +162,7 @@ function _civicrm_api3_mailing_event_reply_spec(&$params) { ...@@ -162,7 +162,7 @@ function _civicrm_api3_mailing_event_reply_spec(&$params) {
$params['job_id']['api.required'] = 1; $params['job_id']['api.required'] = 1;
$params['event_queue_id']['api.required'] = 1; $params['event_queue_id']['api.required'] = 1;
$params['hash']['api.required'] = 1; $params['hash']['api.required'] = 1;
$params['replyTo']['api.required'] = 1; $params['replyTo']['api.required'] = 0;
} }
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment