Bladeren bron

News : utilisation des paramètres lors de l'envoi des messages

reduction
Guillaume 4 jaren geleden
bovenliggende
commit
230d9651a8
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  1. +1
    -1
      ShopBundle/Controller/Admin/NewsController.php

+ 1
- 1
ShopBundle/Controller/Admin/NewsController.php Bestand weergeven

@@ -24,7 +24,7 @@ class NewsController extends AdminController
foreach ($users as $user) {
$message = new \Swift_Message('[Place du Local] '.$news->getTitle());
$message->addTo($user->getEmail())
->addFrom('no-reply@opendistrib.net', 'Place du Local')
->addFrom($this->getParameter('app.noreply_email'), $this->getParameter('app.site_name'))
->setBody($this->renderView('mail/news.html.twig', [
'message' => $news->getDescription(),
'image' => $news->getImage(),

Laden…
Annuleren
Opslaan