You are here

function forward_mail in Forward 7

Same name and namespace in other branches
  1. 8.3 forward.module \forward_mail()
  2. 8 forward.module \forward_mail()
  3. 8.2 forward.module \forward_mail()
  4. 6 forward.module \forward_mail()
  5. 7.3 forward.module \forward_mail()
  6. 7.2 forward.module \forward_mail()
  7. 4.x forward.module \forward_mail()
  8. 4.0.x forward.module \forward_mail()

Implements hook_mail().

Constructs the email notification message when the site is out of date.

Parameters

$key: Unique key to indicate what message to build, always 'forward_page'.

$message: Reference to the message array being built.

$params: Array of parameters to indicate what text to include in the message body.

See also

drupal_mail()

_update_cron_notify()

_update_message_text()

File

./forward.module, line 1183

Code

function forward_mail($key, &$message, $params) {

  //dsm('forward_mail');
  $message['subject'] .= $params['subject'];
  $message['body'][] = $params['body'];
  if ($key == 'forward_page') {
    $message['headers']['MIME-Version'] = '1.0';
    $message['headers']['Content-Type'] = 'text/html; charset=utf-8';
    $message['headers']['Reply-To'] = $params['headers']['Reply-To'];
  }
}