Browse Source

test contact

v1
charly 3 years ago
parent
commit
1c30bd45b2
1 changed files with 2 additions and 3 deletions
  1. +2
    -3
      src/Controller/Frontend/ContactController.php

+ 2
- 3
src/Controller/Frontend/ContactController.php View 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…
Cancel
Save