function forward_mail in Forward 6
Same name and namespace in other branches
- 8.3 forward.module \forward_mail()
- 8 forward.module \forward_mail()
- 8.2 forward.module \forward_mail()
- 7.3 forward.module \forward_mail()
- 7 forward.module \forward_mail()
- 7.2 forward.module \forward_mail()
- 4.x forward.module \forward_mail()
- 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
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';
}
}