function rules_mail

Same name in other branches
  1. 8.x-3.x rules.module \rules_mail()

Implements hook_mail().

Sets the message subject and body as configured.

Related topics

File

modules/system.eval.inc, line 161

Code

function rules_mail($key, &$message, $params) {
    $message['subject'] .= str_replace(array(
        "\r",
        "\n",
    ), '', $params['subject']);
    $message['body'][] = $params['message'];
}