Use correct email

This commit is contained in:
Jannis Portmann 2021-06-17 17:24:53 +02:00
parent 5680522395
commit c7c0445a6b
3 changed files with 4 additions and 3 deletions

View file

@ -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')

View file

@ -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')

View file

@ -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!')