You are here

function multiple_email_mail in Multiple E-mail Addresses 2.x

Same name and namespace in other branches
  1. 6 multiple_email.module \multiple_email_mail()
  2. 7 multiple_email.module \multiple_email_mail()

Implements hook_mail().

File

./multiple_email.module, line 602
multiple_email module file

Code

function multiple_email_mail($key, &$message, $params) {
  switch ($key) {
    case 'confirmation':
    case 'expiration':
      $message['subject'] = $params['subject'];
      $message['body'][] = $params['body'];
      $message['headers'] = array_merge($message['headers'], $params['headers']);
      break;
  }
}