You are here

function mass_contact_mail in Mass Contact 7

Same name and namespace in other branches
  1. 8 mass_contact.module \mass_contact_mail()
  2. 6 mass_contact.module \mass_contact_mail()

Implements hook_mail().

File

./mass_contact.module, line 371
This is the main code file for the Mass Contact module.

Code

function mass_contact_mail($key, &$message, $params) {
  if (!empty($params['headers'])) {
    foreach ($params['headers'] as $key => $value) {
      $message['headers'][$key] = $params['headers'][$key];
    }
  }
  $message['subject'] = $params['subject'];
  $message['body'] = $params['body'];
}