Use correct email
This commit is contained in:
parent
5680522395
commit
c7c0445a6b
3 changed files with 4 additions and 3 deletions
|
@ -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')
|
||||
|
|
|
@ -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')
|
||||
|
|
|
@ -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!')
|
||||
|
|
Reference in a new issue