function tripal_pub_mail
2.x tripal_pub.module | tripal_pub_mail($key, &$message, $params) |
3.x tripal_pub.module | tripal_pub_mail($key, &$message, $params) |
1.x tripal_pub.module | tripal_pub_mail($key, &$message, $params) |
Implements hook_mail().
Related topics
File
- tripal_pub/
tripal_pub.module, line 367 - Basic functionality of the pub module
Code
function tripal_pub_mail($key, &$message, $params) {
$site_name = variable_get('site_name');
$language = $message['language'];
switch ($key) {
case 'import_report':
$headers = array(
'MIME-Version' => '1.0',
'Content-Type' => 'text/html; charset=UTF-8; format=flowed',
'Content-Transfer-Encoding' => '8Bit',
'X-Mailer' => 'Drupal'
);
foreach ($headers as $key => $value) {
$message['headers'][$key] = $value;
}
$message['subject'] = t('Publication import from !site', array('!site' => $site_name));
$message['body'][] = $params['message'];
break;
}
}