private function distributeNotification(MailSenderInterface $mailer, $area) { if (sizeof($area['emails']) > 0) { $mailer->send(EdkTexts::NOTIFICATION_MAIL . '@@' . $area['locale'], $area['emails'], $area['id'], $area); } }
public function onAreaRequestApproved(AreaRequestApprovedEvent $event) { $request = $event->getAreaRequest(); $this->mailSender->send(CoreTexts::AREA_REQUEST_APPROVED_MAIL, $request->getRequestor()->getEmail(), 'notification about area request \'' . $request->getName() . '\' approval sent to \'' . $request->getRequestor()->getEmail() . '\'', ['request' => $request, 'area' => $event->getArea()]); }
public function onRegistrationCompleted(RegistrationEvent $event) { $participant = $event->getParticipant(); $this->mailSender->send(EdkTexts::REGISTRATION_MAIL, $participant->getEmail(), 'user \'' . $participant->getEmail() . '\'', ['participant' => $participant, 'slug' => $event->getSlug()]); }