You are here

function user_mail in Drupal 6

Same name and namespace in other branches
  1. 8 core/modules/user/user.module \user_mail()
  2. 4 modules/user.module \user_mail()
  3. 7 modules/user/user.module \user_mail()
  4. 9 core/modules/user/user.module \user_mail()

Implementation of hook_mail().

2 string references to 'user_mail'
contact_mail in modules/contact/contact.module
Implementation of hook_mail().
contact_mail_user_submit in modules/contact/contact.pages.inc
Process the personal contact page form submission.

File

modules/user/user.module, line 1722
Enables the user registration and login system.

Code

function user_mail($key, &$message, $params) {
  $language = $message['language'];
  $variables = user_mail_tokens($params['account'], $language);
  $message['subject'] .= _user_mail_text($key . '_subject', $language, $variables);
  $message['body'][] = _user_mail_text($key . '_body', $language, $variables);
}