diff --git a/htdocs/comm/mailing/fiche.php b/htdocs/comm/mailing/fiche.php index fc3605adce53bf2f13402c9652189d6780b7908f..9c12415ac55c3c5676cb24c245c9d5564e405bf0 100644 --- a/htdocs/comm/mailing/fiche.php +++ b/htdocs/comm/mailing/fiche.php @@ -612,8 +612,9 @@ if ($_GET["action"] == 'create') print_fiche_titre($langs->trans("NewMailing")); - if ($message) print $message."<br>"; - + if (preg_match('/class="error"/i',$message)) dol_htmloutput_errors($message); + else dol_htmloutput_mesg($message); + print '<table class="border" width="100%">'; print '<tr><td width="25%" class="fieldrequired">'.$langs->trans("MailTitle").'</td><td><input class="flat" name="titre" size="40" value="'.$_POST['titre'].'"></td></tr>'; print '<tr><td width="25%" class="fieldrequired">'.$langs->trans("MailFrom").'</td><td><input class="flat" name="from" size="40" value="'.$conf->global->MAILING_EMAIL_FROM.'"></td></tr>';