diff options
| author | polo <ordipolo@gmx.fr> | 2026-06-11 01:35:57 +0200 |
|---|---|---|
| committer | polo <ordipolo@gmx.fr> | 2026-06-11 01:35:57 +0200 |
| commit | b76547767ae897b6de752c56e2cef6079ca4abcb (patch) | |
| tree | d76006e86198189c949b36b2c284067b9603e3fc /src/service/EmailService.php | |
| parent | ae217a6e4b0c29346381e2a410fd7810cb33ce3f (diff) | |
| download | cms-b76547767ae897b6de752c56e2cef6079ca4abcb.tar.gz cms-b76547767ae897b6de752c56e2cef6079ca4abcb.tar.bz2 cms-b76547767ae897b6de752c56e2cef6079ca4abcb.zip | |
classe EmailForm à Email et détachable de Node
Diffstat (limited to 'src/service/EmailService.php')
| -rw-r--r-- | src/service/EmailService.php | 4 |
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; |
| 8 | use Doctrine\ORM\EntityManager; | 8 | use Doctrine\ORM\EntityManager; |
| 9 | use App\Entity\Email; | 9 | use App\Entity\Email; |
| 10 | use App\Entity\NodeData; | 10 | use App\Entity\EmailForm; |
| 11 | 11 | ||
| 12 | class EmailService | 12 | class 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'; |
