diff --git a/htdocs/comm/mailing/fiche.php b/htdocs/comm/mailing/fiche.php
index fc3605adce5..9c12415ac55 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."
";
-
+ if (preg_match('/class="error"/i',$message)) dol_htmloutput_errors($message);
+ else dol_htmloutput_mesg($message);
+
print '
| '.$langs->trans("MailTitle").' | |
| '.$langs->trans("MailFrom").' |