You are here

function system_service_mail in Services 7

Same name and namespace in other branches
  1. 5 services/system_service/system_service.module \system_service_mail()
  2. 6 services/system_service/system_service.inc \system_service_mail()
  3. 6.2 services/system_service/system_service.inc \system_service_mail()

File

services/system_service/system_service.inc, line 21
@author Services Dev Team

Code

function system_service_mail($mailkey, &$message, $params) {
  $language = $message['language'];
  $variables = user_mail_tokens($params['account'], $language);
  $message['subject'] = t($params['subject'], $variables, $language->language);
  $message['body'] = t($params['body'], $variables, $language->language);
  foreach ($params['headers'] as $header => $val) {
    $message['headers'][$header] = $val;
  }
}