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; } }