charly 3 anni fa
parent
commit
1c30bd45b2
1 ha cambiato i file con 2 aggiunte e 3 eliminazioni
  1. +2
    -3
      src/Controller/Frontend/ContactController.php

+ 2
- 3
src/Controller/Frontend/ContactController.php Vedi File

@@ -26,13 +26,12 @@ class ContactController extends DefaultController
$form = $this->createForm(ContactForm::class);
$form->handleRequest($request);
if ($form->isSubmitted() && $form->isValid() && $form->get('lccap')->getData() == 'blop') {
$message = '<p>De : ' . $form->get('firstname')->getData() . ' ' . $form->get('lastname')->getData(
) . '<br />Email : ' . $form->get('email')->getData() . '<br />Objet : ' . $form->get(
$message = '<p>De : ' . $form->get('firstname')->getData() . ' ' . $form->get('lastname')->getData() . '<br />Email : ' . $form->get('email')->getData(
) . '<br />Objet : ' . $form->get(
'object'
)->getData() . '</p><p>' . $form->get('message')->getData() . '</p>';

$email = (new Email())
// ->from('agir@lacooperativedescitoyens.fr')
->from('nepasrepondre@laclic.fr')
->replyTo($form->get('email')->getData())
// ->to('agir@lacooperativedescitoyens.fr')

Loading…
Annulla
Salva