diff --git a/src/Service/RgpdService.php b/src/Service/RgpdService.php index 1df5088..f3257a9 100644 --- a/src/Service/RgpdService.php +++ b/src/Service/RgpdService.php @@ -31,6 +31,15 @@ class RgpdService $visitors = $this->em->getRepository(AnalyticsUniqId::class)->findBy(['ipHash' => $ipHash]); if (0 === \count($visitors)) { + $this->mailer->sendEmail( + $email, + 'E-Ticket - Demande d\'acces aux donnees (RGPD)', + $this->twig->render('emails/rgpd_no_data.html.twig'), + null, + null, + false, + ); + return ['found' => false, 'count' => 0]; } @@ -73,6 +82,15 @@ class RgpdService $visitors = $this->em->getRepository(AnalyticsUniqId::class)->findBy(['ipHash' => $ipHash]); if (0 === \count($visitors)) { + $this->mailer->sendEmail( + $email, + 'E-Ticket - Demande de suppression (RGPD)', + $this->twig->render('emails/rgpd_no_data.html.twig'), + null, + null, + false, + ); + return ['found' => false, 'deleted' => 0]; } diff --git a/templates/emails/rgpd_no_data.html.twig b/templates/emails/rgpd_no_data.html.twig new file mode 100644 index 0000000..4ae884f --- /dev/null +++ b/templates/emails/rgpd_no_data.html.twig @@ -0,0 +1,7 @@ +{% extends 'email/base.html.twig' %} +{% block content %} +
Bonjour,
+Suite a votre demande RGPD, nous vous informons qu'aucune donnee personnelle n'a ete trouvee dans nos systemes pour l'adresse IP indiquee.
+Si vous pensez qu'il s'agit d'une erreur, veuillez nous contacter a l'adresse contact@e-cosplay.fr.
+Cordialement,
L'equipe E-Ticket
Document genere automatiquement par E-Ticket (Association E-Cosplay) conformement au Reglement General sur la Protection des Donnees (RGPD). -Pour toute question : contact@e-cosplay.fr +
+
+Delegue a la Protection des Donnees (DPO)
+Identifiant : DPO-167945
+Association E-Cosplay — SIREN : 943121517 / RNA : W022006988
+42 rue de Saint-Quentin, 02800 Beautor, France
+Contact : contact@e-cosplay.fr