* The mailing parameters. Array fields include: groupName, from, toName,
* toEmail, subject, cc, bcc, text, html, returnPath, replyTo, headers,
* attachments (array)
- * @param string $context
- * Context of the mailing, either 'activity' or 'civimail'
*
* @return mixed
*/
- public static function postEmailSend(&$params, $context = '') {
- return self::singleton()->invoke(2, $params, $context,
- self::$_nullObject, self::$_nullObject,
+ public static function postEmailSend(&$params) {
+ return self::singleton()->invoke(1, $params,
self::$_nullObject, self::$_nullObject,
+ self::$_nullObject, self::$_nullObject, self::$_nullObject,
'civicrm_postEmailSend'
);
}
+ /**
+ * This hook is called when a CiviMail mailing has completed
+ *
+ * @param array $report
+ * Output from: CRM_Mailing_BAO_Mailing::report()
+ * Includes details about the mailing, including stats to date, jobs, etc.
+ *
+ * @return mixed
+ */
+ public static function postMailing($report) {
+ return self::singleton()->invoke(1, $report,
+ self::$_nullObject, self::$_nullObject,
+ self::$_nullObject, self::$_nullObject, self::$_nullObject,
+ 'civicrm_postMailing'
+ );
+ }
+
/**
* This hook is called when Settings specifications are loaded.
*