From 3aa0a64262d1fa2a4d76ae5ed009387bacbdf84c Mon Sep 17 00:00:00 2001 From: Gnieark Date: Sat, 5 Dec 2015 20:30:17 +0100 Subject: [PATCH] fix --- src/act.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/act.php b/src/act.php index 1f436d3..686cb93 100644 --- a/src/act.php +++ b/src/act.php @@ -78,12 +78,10 @@ switch($_POST['act']){ //$mail->msgHTML=$lang['E_MAIL_ADD_BOT_INTRO_HTML'].'

'.$siteParam['BASEURL'].'validateBot/'.$secret.'

'.$lang['E_MAIL_ADD_BOT_SIGNATURE_HTML']; $mail->Body = $lang['E_MAIL_ADD_BOT_INTRO']."\n".$siteParam['BASEURL'].'validateBot/'.$secret."\n".$lang['E_MAIL_ADD_BOT_SIGNATURE']; if (!$mail->send()) { - echo "Mailer Error: " . $mail->ErrorInfo; + error(500,"Mailer Error: " . $mail->ErrorInfo); } else { - echo "Message sent!"; - } - - + //echo "Message sent!"; + } } echo "TODO";