This commit is contained in:
Gnieark 2015-12-30 16:32:51 +01:00
parent 10512c0cde
commit a4f8064ff2

View File

@ -147,7 +147,7 @@ switch($_POST['act']){
$mail = new PHPMailer; $mail = new PHPMailer;
$mail->isSMTP(); $mail->isSMTP();
//$mail->IsHTML(true); //$mail->IsHTML(true);
$mail->SMTPDebug = 2; //$mail->SMTPDebug = 2;
$mail->Debugoutput = 'html'; $mail->Debugoutput = 'html';
$mail->Host = $smtpParams['host']; $mail->Host = $smtpParams['host'];
$mail->Port = $smtpParams['port']; $mail->Port = $smtpParams['port'];
@ -162,13 +162,13 @@ switch($_POST['act']){
if (!$mail->send()) { if (!$mail->send()) {
error(500,"Mailer Error: " . $mail->ErrorInfo); error(500,"Mailer Error: " . $mail->ErrorInfo);
} else { } else {
echo "Message sent!"; //echo "Message sent!";
} }
}else{ }else{
echo "plop".$err."plop"; die; //echo "plop".$err."plop"; die;
} }