You are here

function subscriptions_mail_mail in Subscriptions 6

Same name and namespace in other branches
  1. 7 subscriptions_mail.cron.inc \subscriptions_mail_mail()
  2. 2.0.x subscriptions_mail/subscriptions_mail.cron.inc \subscriptions_mail_mail()

Implementation of hook_mail().

File

./subscriptions_mail.cron.inc, line 263
Subscriptions module mail gateway (cron functions).

Code

function subscriptions_mail_mail($key, &$message, $params) {
  global $base_url;
  $url = parse_url($base_url);
  $list_id = variable_get('site_name', '') . ' ' . t('Subscriptions') . ' <subscriptions.' . $url['host'] . '>';
  $message['subject'] = $params['context']['subject'];
  $message['body'] = $params['context']['message'];
  $message['headers']['List-Id'] = $list_id;
}