You are here

public function MessageDigest::deliverDigest in Message Digest 7

Send the actual digest email.

File

plugins/notifier/abstract.inc, line 120

Class

MessageDigest
Message Digest notifier.

Code

public function deliverDigest($uid, $gid, $formatted_message) {
  $account = user_load($uid);
  $lang = !empty($account->language) && $account->language != LANGUAGE_NONE ? $languages[$account->language] : language_default();
  $params = array(
    'body' => $formatted_message,
    'gid' => $gid,
  );
  drupal_mail('message_digest', 'digest', $account->mail, $lang, $params);

  // @TODO, USE message_notify_send_message() INSTEAD.
}