You are here

function answers_mail_helper in Answers 7.3

Implements helper for answers_mail().

1 call to answers_mail_helper()
answers_mail in includes/answers.notify.inc
Implements hook_mail().

File

includes/answers.notify.inc, line 88

Code

function answers_mail_helper($key, &$message, $params, $subject_template, $body_template) {
  $langcode = $message['language']->language;
  $message['headers']['Content-Type'] = 'text/html; charset=UTF-8; format=flowed';
  if (!module_exists('mimemail')) {
    $message['headers']['Mime-Version'] = '1.0';
  }
  $message['subject'] = t(check_plain($subject_template), $params, array(
    'langcode' => $langcode,
  ));
  $message['body'][] = t(filter_xss($body_template), $params, array(
    'langcode' => $langcode,
  ));
}