You are here

function node_registration_mail in Node registration 7

Implements hook_mail().

File

./node_registration.module, line 1177

Code

function node_registration_mail($key, &$message, $params) {
  $subject = $params['subject'];
  $body = $params['message'];
  $message['subject'] .= str_replace(array(
    "\r",
    "\n",
  ), '', $subject);
  $message['body'][] = $body;
  if (!empty($params['bcc'])) {
    $message['headers']['Bcc'] = $params['bcc'];
  }
}