瀏覽代碼

test contact

v1
charly 3 年之前
父節點
當前提交
1c30bd45b2
共有 1 個檔案被更改,包括 2 行新增3 行删除
  1. +2
    -3
      src/Controller/Frontend/ContactController.php

+ 2
- 3
src/Controller/Frontend/ContactController.php 查看文件

@@ -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…
取消
儲存