You are here

function opigno_moxtra_mail in Opigno Moxtra 8

Same name and namespace in other branches
  1. 3.x opigno_moxtra.module \opigno_moxtra_mail()

Implements hook_mail().

File

./opigno_moxtra.module, line 347
Contains opigno_moxtra.module.

Code

function opigno_moxtra_mail($key, &$message, $params) {
  if ($key !== 'upcoming_meeting_notify') {
    return;
  }
  $message['from'] = \Drupal::config('system.site')
    ->get('mail');
  $message['subject'] = $params['subject'];
  $message['body'][] = $params['message'];
  $message['params']['attachments'][] = $params['attachments'];
}