You are here

function htmlmail_mail in HTML Mail 7.2

Same name and namespace in other branches
  1. 8.3 htmlmail.module \htmlmail_mail()
  2. 8 htmlmail.module \htmlmail_mail()
  3. 8.2 htmlmail.module \htmlmail_mail()
  4. 6.2 htmlmail.module \htmlmail_mail()
  5. 6 htmlmail.module \htmlmail_mail()
  6. 7 htmlmail.module \htmlmail_mail()

Implements hook_mail().

File

./htmlmail.module, line 139
Sends system emails in HTML.

Code

function htmlmail_mail($key, &$message, $params) {
  $message['module'] = 'htmlmail';
  $message['key'] = $key;
  $message['subject'] = $params['subject'];
  $message['body'] = explode(MAIL_LINE_ENDINGS . MAIL_LINE_ENDINGS, $params['body']);
  if (isset($params['headers'])) {
    $message['headers'] = array_merge($message['headers'], $params['headers']);
  }
  return $message;
}