}
/**
- * Construct the message to be sent by the send function.
- *
- * @param array $tplParams
- * @param int $contactID
- * @param $isTest
- *
- * @return array
- */
- public function composeMessage($tplParams, $contactID, $isTest) {
- $sendTemplateParams = array(
- 'groupName' => $tplParams['membershipID'] ? 'msg_tpl_workflow_membership' : 'msg_tpl_workflow_contribution',
- 'valueName' => $tplParams['membershipID'] ? 'membership_online_receipt' : 'contribution_online_receipt',
- 'contactId' => $contactID,
- 'tplParams' => $tplParams,
- 'isTest' => $isTest,
- 'PDFFilename' => 'receipt.pdf',
- );
- if ($returnMessageText) {
- list($sent, $subject, $message, $html) = CRM_Core_BAO_MessageTemplate::sendTemplate($sendTemplateParams);
- return array(
- 'subject' => $subject,
- 'body' => $message,
- 'to' => $displayName,
- 'html' => $html,
- );
- }
- }
-
- /**
- * Send the emails for Recurring Contribution Notication.
+ * Send the emails for Recurring Contribution Notification.
*
* @param string $type
* TxnType.
* @param object $recur
* Object of recurring contribution table.
* @param bool|object $autoRenewMembership is it a auto renew membership.
- *
- * @return void
*/
public static function recurringNotify($type, $contactID, $pageID, $recur, $autoRenewMembership = FALSE) {
$value = array();
$template->assign('updateSubscriptionUrl', $url);
}
- list($sent, $subject, $message, $html) = CRM_Core_BAO_MessageTemplate::sendTemplate($templatesParams);
+ list($sent) = CRM_Core_BAO_MessageTemplate::sendTemplate($templatesParams);
if ($sent) {
CRM_Core_Error::debug_log_message('Success: mail sent for recurring notification.');