function variable_email_mail in Variable Email 7
Implements hook_mail().
Set's the message subject and body as configured.
File
- ./
variable_email.module, line 23 - Variable Email code
Code
function variable_email_mail($key, &$message, $params) {
$message['subject'] .= str_replace(array(
"\r",
"\n",
), '', $params['subject']);
$message['body'][] = $params['message'];
}