aboutsummaryrefslogtreecommitdiff
path: root/src/service
diff options
context:
space:
mode:
authorpolo <ordipolo@gmx.fr>2026-06-11 01:35:57 +0200
committerpolo <ordipolo@gmx.fr>2026-06-11 01:35:57 +0200
commitb76547767ae897b6de752c56e2cef6079ca4abcb (patch)
treed76006e86198189c949b36b2c284067b9603e3fc /src/service
parentae217a6e4b0c29346381e2a410fd7810cb33ce3f (diff)
downloadcms-b76547767ae897b6de752c56e2cef6079ca4abcb.tar.gz
cms-b76547767ae897b6de752c56e2cef6079ca4abcb.tar.bz2
cms-b76547767ae897b6de752c56e2cef6079ca4abcb.zip
classe EmailForm à Email et détachable de Node
Diffstat (limited to 'src/service')
-rw-r--r--src/service/EmailService.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/service/EmailService.php b/src/service/EmailService.php
index 0ea8f39..1579bdb 100644
--- a/src/service/EmailService.php
+++ b/src/service/EmailService.php
@@ -7,13 +7,13 @@ use PHPMailer\PHPMailer\PHPMailer;
7//use PHPMailer\PHPMailer\Exception; 7//use PHPMailer\PHPMailer\Exception;
8use Doctrine\ORM\EntityManager; 8use Doctrine\ORM\EntityManager;
9use App\Entity\Email; 9use App\Entity\Email;
10use App\Entity\NodeData; 10use App\Entity\EmailForm;
11 11
12class EmailService 12class EmailService
13{ 13{
14 const KEEP_EMAILS_DEFAULT = false; 14 const KEEP_EMAILS_DEFAULT = false;
15 15
16 static public function send(EntityManager $entityManager, NodeData $form_data, bool $test_email, string $name = '', string $email = '', string $message = ''): bool 16 static public function send(EntityManager $entityManager, EmailForm $form_data, bool $test_email, string $name = '', string $email = '', string $message = ''): bool
17 { 17 {
18 $mail = new PHPMailer(true); // true => exceptions 18 $mail = new PHPMailer(true); // true => exceptions
19 $mail->CharSet = 'UTF-8'; 19 $mail->CharSet = 'UTF-8';