diff options
Diffstat (limited to 'src/service')
| -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'; |
