From: Guanhuan Chen Date: Thu, 5 Mar 2015 11:44:20 +0000 (+0000) Subject: Add job ID to mailParams for external email delivery service to utilise X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=519857cf7335deba3c353160b5018ff4d7ba90df;p=civicrm-core.git Add job ID to mailParams for external email delivery service to utilise --- diff --git a/CRM/Mailing/BAO/Mailing.php b/CRM/Mailing/BAO/Mailing.php index 1414f95f11..d826725971 100644 --- a/CRM/Mailing/BAO/Mailing.php +++ b/CRM/Mailing/BAO/Mailing.php @@ -1267,6 +1267,9 @@ ORDER BY civicrm_email.is_bulkmail DESC ); $mailParams['toEmail'] = $email; + // Add job ID to mailParams for external email delivery service to utilise + $mailParams['job_id'] = $job_id; + CRM_Utils_Hook::alterMailParams($mailParams, 'civimail'); // CRM-10699 support custom email headers