modify ready for multiple email attachments

This commit is contained in:
Nathan Coad
2018-06-26 17:58:40 +10:00
parent 7e4f90cc54
commit 01b0b05428
3 changed files with 40 additions and 11 deletions

View File

@@ -978,7 +978,7 @@ function booking_mail($key, &$message, $params) {
// Add attachment when available.
// From https://drupal.stackexchange.com/questions/101035/send-attachments-with-drupal-mail
if (isset($params['attachment'])) {
$message['params']['attachments'][] = $params['attachment'];
$message['params']['attachments'] = $params['attachment'];
}
//watchdog('booking_debug', "<pre>Mail hook:\n@info</pre>", array('@info' => print_r( $message, true)));