From 59b5ffc82fa8efa157e435efad97c2c8734bffdc Mon Sep 17 00:00:00 2001 From: troy Date: Sat, 12 Nov 2022 11:25:42 +0100 Subject: [PATCH] mail return werte gesetzt --- mail.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mail.php b/mail.php index e6e69e1..0fe2399 100644 --- a/mail.php +++ b/mail.php @@ -83,9 +83,9 @@ function send_php_mail($an, $betreff, $text, $ok = '', $error = '') { //$mail->addAttachment('images/phpmailer_mini.png'); if (!$mail->send()) { - echo 'Mailer Error: ' . $mail->ErrorInfo; + echo $error; } else { - echo 'Message sent!'; + echo $ok; } }