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
|
// generate a signed url and email it to the user
|
||||||
$this->emailVerifier->sendEmailConfirmation('app_verify_email', $user,
|
$this->emailVerifier->sendEmailConfirmation('app_verify_email', $user,
|
||||||
(new TemplatedEmail())
|
(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())
|
->to($user->getEmail())
|
||||||
->subject('Please Confirm your Email')
|
->subject('Please Confirm your Email')
|
||||||
->htmlTemplate('registration/confirmation_email.html.twig')
|
->htmlTemplate('registration/confirmation_email.html.twig')
|
||||||
|
|
|
@ -152,7 +152,7 @@ class ResetPasswordController extends AbstractController
|
||||||
}
|
}
|
||||||
|
|
||||||
$email = (new TemplatedEmail())
|
$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())
|
->to($user->getEmail())
|
||||||
->subject('Your password reset request')
|
->subject('Your password reset request')
|
||||||
->htmlTemplate('reset_password/email.html.twig')
|
->htmlTemplate('reset_password/email.html.twig')
|
||||||
|
|
|
@ -12,6 +12,7 @@ use Symfony\Bridge\Twig\Mime\TemplatedEmail;
|
||||||
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
|
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
|
||||||
use Symfony\Component\HttpFoundation\Response;
|
use Symfony\Component\HttpFoundation\Response;
|
||||||
use Symfony\Component\Mailer\MailerInterface;
|
use Symfony\Component\Mailer\MailerInterface;
|
||||||
|
use Symfony\Component\Mime\Address;
|
||||||
use Symfony\Component\Mime\Email;
|
use Symfony\Component\Mime\Email;
|
||||||
use Symfony\Component\Routing\Annotation\Route;
|
use Symfony\Component\Routing\Annotation\Route;
|
||||||
|
|
||||||
|
@ -26,7 +27,7 @@ class TradeController extends AbstractController
|
||||||
if($user != $offer->getByUser())
|
if($user != $offer->getByUser())
|
||||||
{
|
{
|
||||||
$email = (new TemplatedEmail())
|
$email = (new TemplatedEmail())
|
||||||
->from('no-reply@thisfro.ch')
|
->from(new Address('no-reply@pflaenz.li', 'Pflänzli no-reply'))
|
||||||
->to($offer->getByUser()->getEmail())
|
->to($offer->getByUser()->getEmail())
|
||||||
->replyTo($user->getEmail())
|
->replyTo($user->getEmail())
|
||||||
->subject($user->getUsername() . ' wants to trade with you!')
|
->subject($user->getUsername() . ' wants to trade with you!')
|
||||||
|
|
Reference in a new issue