function htmlmail_mail in HTML Mail 8
Same name and namespace in other branches
- 8.3 htmlmail.module \htmlmail_mail()
- 8.2 htmlmail.module \htmlmail_mail()
- 6.2 htmlmail.module \htmlmail_mail()
- 6 htmlmail.module \htmlmail_mail()
- 7.2 htmlmail.module \htmlmail_mail()
- 7 htmlmail.module \htmlmail_mail()
Implements hook_mail().
File
- ./
htmlmail.module, line 15 - Default file for HTML Mail module.
Code
function htmlmail_mail($key, &$message, $params) {
$message['module'] = HtmlMailHelper::HTMLMAIL_MODULE_NAME;
$message['key'] = $key;
$message['subject'] = $params['subject'];
$message['body'][] = $params['body'];
if (isset($params['headers'])) {
$message['headers'] = array_merge($message['headers'], $params['headers']);
}
return $message;
}