function recovery_pass_mail in Recovery Password (Email New Password) 7
Same name and namespace in other branches
- 8 recovery_pass.module \recovery_pass_mail()
Implements hook_mail().
File
- ./
recovery_pass.module, line 123 - Alters default Drupal password recovery process by overriding default submit.
Code
function recovery_pass_mail($key, &$message, $params) {
switch ($key) {
case 'recovery_pass':
// Mail parameters used for recovery mail.
$message['subject'] = $params['subject'];
$message['body'][] = $params['body'];
if (module_exists("htmlmail")) {
// For html mail.
$message['headers']['Content-Type'] = 'text/html; charset=UTF-8; format=flowed';
}
break;
}
}