function business_rules_mail in Business Rules 8
Same name and namespace in other branches
- 2.x business_rules.module \business_rules_mail()
Implements hook_mail().
1 string reference to 'business_rules_mail'
- SendEmail::execute in src/
Plugin/ BusinessRulesAction/ SendEmail.php - Execute the action.
File
- ./
business_rules.module, line 416 - Business Rules module.
Code
function business_rules_mail($key, &$message, $params) {
if ($key === 'business_rules_mail') {
$message['headers'] = array_merge($message['headers'], $params['headers']);
$message['subject'] = $params['subject'];
$message['body'][] = $params['message'];
}
}