You are here

function forward_mail in Forward 6

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. 7.3 forward.module \forward_mail()
  5. 7 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()

Implementation of 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 1027

Code

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