From c7c0445a6b4e11f965c2e4ccff05651aa524184f Mon Sep 17 00:00:00 2001 From: thisfro Date: Thu, 17 Jun 2021 17:24:53 +0200 Subject: [PATCH] Use correct email --- src/Controller/RegistrationController.php | 2 +- src/Controller/ResetPasswordController.php | 2 +- src/Controller/TradeController.php | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Controller/RegistrationController.php b/src/Controller/RegistrationController.php index a0cc345..8e4951d 100644 --- a/src/Controller/RegistrationController.php +++ b/src/Controller/RegistrationController.php @@ -49,7 +49,7 @@ class RegistrationController extends AbstractController // generate a signed url and email it to the user $this->emailVerifier->sendEmailConfirmation('app_verify_email', $user, (new TemplatedEmail()) - ->from(new Address('no-reply@thisfro.ch', 'plantex no-reply')) + ->from(new Address('no-reply@pflaenz.li', 'Pflänzli no-reply')) ->to($user->getEmail()) ->subject('Please Confirm your Email') ->htmlTemplate('registration/confirmation_email.html.twig') diff --git a/src/Controller/ResetPasswordController.php b/src/Controller/ResetPasswordController.php index 185e809..293cc6a 100644 --- a/src/Controller/ResetPasswordController.php +++ b/src/Controller/ResetPasswordController.php @@ -152,7 +152,7 @@ class ResetPasswordController extends AbstractController } $email = (new TemplatedEmail()) - ->from(new Address('no-reply@thisfro.ch', 'plantex no-reply')) + ->from(new Address('no-reply@pflaenz.li', 'Pflänzli no-reply')) ->to($user->getEmail()) ->subject('Your password reset request') ->htmlTemplate('reset_password/email.html.twig') diff --git a/src/Controller/TradeController.php b/src/Controller/TradeController.php index 3cd4868..83d88be 100644 --- a/src/Controller/TradeController.php +++ b/src/Controller/TradeController.php @@ -12,6 +12,7 @@ use Symfony\Bridge\Twig\Mime\TemplatedEmail; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Mailer\MailerInterface; +use Symfony\Component\Mime\Address; use Symfony\Component\Mime\Email; use Symfony\Component\Routing\Annotation\Route; @@ -26,7 +27,7 @@ class TradeController extends AbstractController if($user != $offer->getByUser()) { $email = (new TemplatedEmail()) - ->from('no-reply@thisfro.ch') + ->from(new Address('no-reply@pflaenz.li', 'Pflänzli no-reply')) ->to($offer->getByUser()->getEmail()) ->replyTo($user->getEmail()) ->subject($user->getUsername() . ' wants to trade with you!')