You are here

function health_mail in Health Status 7

Implements hook_mail().

File

./health.module, line 151
Contains the basic hooks and function used by the Health system.

Code

function health_mail($key, &$message, $params) {
  switch ($key) {
    case "health_status":
      $message['subject'] = variable_get('health_email_subject');
      $message['body'][] = theme('health_status_email', $params);
      $message['headers']['Content-Type'] = "text/html; charset=iso-8859-1";
      $message['headers']['Mime-Version'] = "1.0";
      break;
  }
}