From 470ccd2e7eba15a5f0c0b9a8544cc3b250deb599 Mon Sep 17 00:00:00 2001 From: MacBook Pro Alejandro Date: Thu, 21 Jan 2021 15:21:54 +0100 Subject: [PATCH] fixed printing mails --- invitations.php | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/invitations.php b/invitations.php index 2e57b8b..dcdcb2d 100644 --- a/invitations.php +++ b/invitations.php @@ -72,15 +72,19 @@ function sendMail($mail, $subject, $content, $headers)
$error) + foreach ($error_messages as $key => $error) { echo "
"; - echo $error; - echo "
"; + echo "

" . $error . "

"; + echo "
"; + } + } + if (count($sended_mails) > 0) { + foreach ($sended_mails as $key => $mail) { + echo "
"; + echo "

" . $mail . "se ha enviado correctamente.

"; + echo "
"; + } } - foreach ($sended_mails as $key => $mail) - echo "
"; - echo $mail . "se ha enviado correctamente."; - echo "
"; ?>