function opigno_moxtra_mail in Opigno Moxtra 3.x
Same name and namespace in other branches
- 8 opigno_moxtra.module \opigno_moxtra_mail()
Implements hook_mail().
File
- ./
opigno_moxtra.module, line 349 - 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'];
}