mail return werte gesetzt

This commit is contained in:
troy 2022-11-12 11:25:42 +01:00
parent 2913f3f032
commit 59b5ffc82f

View File

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