You are here

function forena_mail in Forena Reports 6.2

Same name and namespace in other branches
  1. 8 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 787

Code

function forena_mail($key, &$message, $parms) {
  switch ($key) {
    case 'mailmerge':
      $message['subject'] = $parms['subject'];
      $body = $parms['body'];
      $message['body'] = '<html><body>' . $body . '</body></html>';
      $message['headers']['MIME-Version'] = '1.0';
      $message['headers']['Content-Type'] = 'text/html;charset=utf-8';
      break;
  }
}