Skip to content
Snippets Groups Projects
Commit 5babd0bf authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

do_not_send => redirect

(cherry picked from commit bf3b5271)
parent 4cfdd0b2
No related branches found
No related tags found
No related merge requests found
Pipeline #22410 passed
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
......@@ -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"];
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment