Merge pull request #9255 from MrPetovan/bug/fatal-errors

Add expected method MailBuilder->withHeaders
This commit is contained in:
Michael Vogel 2020-09-21 19:03:57 +02:00 committed by GitHub
commit 9c7a4ae2bd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 33 additions and 3 deletions

View file

@ -550,13 +550,13 @@ function notification($params)
'title' => $title,
'body' => $body,
'subject' => $subject,
'headers' => $emailBuilder->getHeaders(),
];
Hook::callAll('enotify_mail', $datarray);
$builder = DI::emailer()
->newNotifyMail()
->addHeaders($datarray['headers'])
$emailBuilder
->withHeaders($datarray['headers'])
->withRecipient($params['to_email'])
->forUser([
'uid' => $datarray['uid'],