/** * @inheritDoc */ public function handle(NotificationInterface $notification) { foreach ($notification->getRecipientAddresses() as $recipientAddress) { $this->getEmailClient()->sendEmail($notification->getEmailTemplate(), $recipientAddress, $notification->getParameters()); } return true; }
public function handle(NotificationInterface $notification) { $to = implode(',', $notification->getRecipientAddresses()); mail($to, $notification->subject, $notification->body); }