function mass_contact_mail in Mass Contact 6
Same name and namespace in other branches
- 8 mass_contact.module \mass_contact_mail()
- 7 mass_contact.module \mass_contact_mail()
Implementation of hook_mail().
File
- ./
mass_contact.module, line 299 - This is the main code file for the Mass Contact module. This module enables users to contact multiple users through selected roles.
Code
function mass_contact_mail($key, &$message, $params) {
if (!empty($params['headers'])) {
foreach ($params['headers'] as $key => $value) {
$message['headers'][$key] = $params['headers'][$key];
}
}
$message['subject'] = $params['subject'];
$message['body'] = $params['body'];
}