You are here

function forena_mail in Forena Reports 8

Same name and namespace in other branches
  1. 6.2 forena.module \forena_mail()
  2. 6 forena.module \forena_mail()
  3. 7.5 forena.module \forena_mail()
  4. 7 forena.module \forena_mail()
  5. 7.2 forena.module \forena_mail()
  6. 7.3 forena.module \forena_mail()
  7. 7.4 forena.module \forena_mail()

Impementation of hook_mail Builds an email to send when mailing large numbers of users.

File

./forena.module, line 514

Code

function forena_mail($key, &$message, $parms) {
  switch ($key) {
    case 'mailmerge':
      $message['subject'] = $parms['subject'];
      $body = $parms['body'];
      $message['body'][] = $body;
      if (isset($parms['headers'])) {
        $message['headers'] += $parms['headers'];
      }
      $htmlmail = FALSE;
      break;
  }
}