}
/**
- *
* Prepares the text and html templates
* for generating the emails and returns a copy of the
* prepared templates
+ *
+ * @deprecated
+ * This is used by CiviMail but will be made redundant by FlexMailer/TokenProcessor.
*/
private function getPreparedTemplates() {
if (!$this->preparedTemplates) {
}
// To check for an html part strip tags
- if (trim(strip_tags($this->body_html))) {
+ if (trim(strip_tags($this->body_html, '<img>'))) {
$template = array();
if ($this->header) {
/**
* Compose a message.
*
+ * @deprecated
+ * This is used by CiviMail but will be made redundant by FlexMailer/TokenProcessor.
* @param int $job_id
* ID of the Job associated with this message.
* @param int $event_queue_id
*
* Get mailing object and replaces subscribeInvite, domain and mailing tokens.
*
+ * @deprecated
+ * This is used by CiviMail but will be made redundant by FlexMailer/TokenProcessor.
* @param CRM_Mailing_BAO_Mailing $mailing
*/
public static function tokenReplace(&$mailing) {
/**
* Get data to resolve tokens.
*
+ * @deprecated
+ * This is used by CiviMail but will be made redundant by FlexMailer/TokenProcessor.
+ *
* @param array $token_a
* @param bool $html
* Whether to encode the token result for use in HTML email
}
/**
+ * @deprecated
+ * This is used by CiviMail but will be made redundant by FlexMailer.
* @param CRM_Mailing_DAO_Mailing $mailing
* The mailing which may or may not be sendable.
* @return array
}
/**
+ * @deprecated
+ * This is used by CiviMail but will be made redundant by FlexMailer/TokenProcessor.
* @return array
*/
public function getReturnProperties() {