You are here

function forena_mail in Forena Reports 7.4

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

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

File

./forena.module, line 1558

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;
  }
}