Add job ID to mailParams for external email delivery service to utilise
authorGuanhuan Chen <oooomic@gmail.com>
Thu, 5 Mar 2015 11:44:20 +0000 (11:44 +0000)
committerGuanhuan Chen <oooomic@gmail.com>
Thu, 5 Mar 2015 11:44:20 +0000 (11:44 +0000)
CRM/Mailing/BAO/Mailing.php

index 1414f95f11a900e063bb9cfa83e16dafd86ec28f..d826725971e8f7b76376bec2494773ca0ee4cebd 100644 (file)
@@ -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