Commit 5babd0bf authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

do_not_send => redirect

(cherry picked from commit bf3b5271)
parent 4cfdd0b2
Loading
Loading
Loading
Loading
Loading

CHANGELOG

0 → 100644
+5 −0
Original line number Diff line number Diff line
6.0.6

* Possibilité de désactiver l'envoi de mail
* "do_not_send" est renommé en "redirect"
* un nouveau paramètre "do_not_send" n'envoie pas le mail
 No newline at end of file
+4 −2
Original line number Diff line number Diff line
@@ -39,9 +39,11 @@ class MailController extends AbstractActionController {
                return ['title' => "Envoyer un mail de test", 'error' => "L'adresse mail saisie n'est pas valide."];
            }
            $mail = $this->getMailService()->sendMail($data['mail-to'], 'Mail de test', 'Ceci est un mail de test. <br/> <hr/>Merci de ne pas en tenir compte.');
            if ($mail){
                $mail->setMotsClefs(['TEST']);
                $this->getMailService()->update($mail);
            }
        }
        return ['title' => "Envoyer un mail de test"];
    }