function system_mail in Drupal 7
Same name and namespace in other branches
- 8 core/modules/system/system.module \system_mail()
- 6 modules/system/system.module \system_mail()
- 9 core/modules/system/system.module \system_mail()
- 10 core/modules/system/system.module \system_mail()
Implements hook_mail().
File
- modules/
system/ system.module, line 3293 - Configuration system that lets administrators modify the workings of the site.
Code
function system_mail($key, &$message, $params) {
$context = $params['context'];
$subject = token_replace($context['subject'], $context);
$body = token_replace($context['message'], $context);
$message['subject'] .= str_replace(array(
"\r",
"\n",
), '', $subject);
$message['body'][] = $body;
}