fix mail notifier doc
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
b82d9b4d73
commit
cef8323fe6
|
@ -33,7 +33,10 @@ public function foo(MailNotifier $notifier, UserRepositoryQuery $query)
|
|||
->init()
|
||||
->setSubject('Your bill')
|
||||
->addRecipient('john.doe@example.com')
|
||||
->addRecipients($query->create()->where('.isAdmin = true')->find(), true)
|
||||
->addRecipients(array_map(
|
||||
fn($u) => $u->getEmail(),
|
||||
$query->create()->where('.isAdmin = true')->find()
|
||||
), true)
|
||||
->addAttachment('path/to/bill.pdf')
|
||||
->notify('mail/bill.html.twig', [
|
||||
// view params
|
||||
|
|
Loading…
Reference in a new issue