modify ready for multiple email attachments
This commit is contained in:
@@ -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)));
|
||||
|
Reference in New Issue
Block a user