mirror of
https://github.com/friendica/friendica
synced 2025-04-22 08:30:10 +00:00
Add expected method MailBuilder->withHeaders
- Address https://github.com/friendica/friendica/issues/9250#issuecomment-696055412
This commit is contained in:
parent
b8f3c4b065
commit
acd6fd7dd3
2 changed files with 33 additions and 3 deletions
|
@ -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'],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue