|
|
@@ -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') |