From 8d4e08e4bc962cd9e889d0dee2aab5ca858c20db Mon Sep 17 00:00:00 2001 From: Frank Date: Sun, 11 Jan 2026 23:10:30 +0100 Subject: [PATCH] Mailer From --- config/services.yaml | 1 + docker/php/php.ini | 2 +- src/Tech/Controller/RegistrationController.php | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/config/services.yaml b/config/services.yaml index 5913030..f724eaf 100644 --- a/config/services.yaml +++ b/config/services.yaml @@ -4,6 +4,7 @@ # Put parameters here that don't need to change on each machine where the app is deployed # https://symfony.com/doc/current/best_practices.html#use-parameters-for-application-configuration parameters: + mailer_from: '%env(MAILER_FROM)%' services: # default configuration for services in *this* file diff --git a/docker/php/php.ini b/docker/php/php.ini index 78ff47d..228659d 100644 --- a/docker/php/php.ini +++ b/docker/php/php.ini @@ -9,6 +9,6 @@ opcache.validate_timestamps=1 opcache.revalidate_freq=0 log_errors=On -error_log=/var/www/html/var/log/errorlog_php.txt +error_log=/var/www/html/var/log/errorlog_php.log session.gc_maxlifetime=1440 session.cookie_lifetime=0 diff --git a/src/Tech/Controller/RegistrationController.php b/src/Tech/Controller/RegistrationController.php index 6ebf436..7cb2d20 100644 --- a/src/Tech/Controller/RegistrationController.php +++ b/src/Tech/Controller/RegistrationController.php @@ -39,7 +39,7 @@ class RegistrationController extends AbstractController // generate a signed url and email it to the user $emailVerifier->sendEmailConfirmation('app_verify_email', $user, (new TemplatedEmail()) - ->from('noreply@escapepage.dev') + ->from($this->getParameter('mailer_from')) ->to($user->getEmail()) ->subject('Please Confirm your Email') ->htmlTemplate('tech/registration/confirmation_email.html.twig')