Mailer From

This commit is contained in:
Frank
2026-01-11 23:10:30 +01:00
parent 6fba1cbcf3
commit 8d4e08e4bc
3 changed files with 3 additions and 2 deletions
+1
View File
@@ -4,6 +4,7 @@
# Put parameters here that don't need to change on each machine where the app is deployed # 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 # https://symfony.com/doc/current/best_practices.html#use-parameters-for-application-configuration
parameters: parameters:
mailer_from: '%env(MAILER_FROM)%'
services: services:
# default configuration for services in *this* file # default configuration for services in *this* file
+1 -1
View File
@@ -9,6 +9,6 @@ opcache.validate_timestamps=1
opcache.revalidate_freq=0 opcache.revalidate_freq=0
log_errors=On 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.gc_maxlifetime=1440
session.cookie_lifetime=0 session.cookie_lifetime=0
@@ -39,7 +39,7 @@ class RegistrationController extends AbstractController
// generate a signed url and email it to the user // generate a signed url and email it to the user
$emailVerifier->sendEmailConfirmation('app_verify_email', $user, $emailVerifier->sendEmailConfirmation('app_verify_email', $user,
(new TemplatedEmail()) (new TemplatedEmail())
->from('noreply@escapepage.dev') ->from($this->getParameter('mailer_from'))
->to($user->getEmail()) ->to($user->getEmail())
->subject('Please Confirm your Email') ->subject('Please Confirm your Email')
->htmlTemplate('tech/registration/confirmation_email.html.twig') ->htmlTemplate('tech/registration/confirmation_email.html.twig')