✨ feat(HomeController): Envoie un email de validation après l'inscription à la newsletter.
This commit is contained in:
@@ -73,11 +73,11 @@ class HomeController extends AbstractController
|
|||||||
$exit = $notifuseClient->contactExist($datas['email']);
|
$exit = $notifuseClient->contactExist($datas['email']);
|
||||||
if($exit == false){
|
if($exit == false){
|
||||||
$notifuseClient->contactAdd($datas['email']);
|
$notifuseClient->contactAdd($datas['email']);
|
||||||
//send email vot validation
|
$mailer->send($datas['email'],$datas['email'],'[E-Cosplay] - Valider votre inscription à la newsletter',"mails/newsletter-valiate.twig",[
|
||||||
|
'confirmationUrl' => $this->generateUrl('app_newsletter_validate',['email'=>$datas['email']],UrlGeneratorInterface::ABSOLUTE_URL),
|
||||||
|
],[],true);
|
||||||
}
|
}
|
||||||
$mailer->send($datas['email'],$datas['email'],'[E-Cosplay] - Valider votre inscription à la newsletter',"mails/newsletter-valiate.twig",[
|
|
||||||
'confirmationUrl' => $this->generateUrl('app_newsletter_validate',['email'=>$datas['email']],UrlGeneratorInterface::ABSOLUTE_URL),
|
|
||||||
],[],true);
|
|
||||||
|
|
||||||
return $this->render('newsletter.twig', [
|
return $this->render('newsletter.twig', [
|
||||||
'no_index' => true
|
'no_index' => true
|
||||||
|
|||||||
Reference in New Issue
Block a user