Site Re-Upload

This commit is contained in:
luke-else
2021-10-29 22:26:58 +01:00
parent b350d208b4
commit 414eaa10f6
5 changed files with 10 additions and 5 deletions

View File

@ -36,7 +36,10 @@ if ($_POST['name'] != null && $_POST['email'] != null && $_POST['phone'] && $_PO
//Server settings
$mail->SMTPDebug = SMTP::DEBUG_SERVER; //Enable verbose debug output
$mail->isSMTP(); //Send using SMTP
$mail->Host = 'box.luke-else.co.uk'; //Set the SMTP server to send through
$mail->Host = 'in-v3.mailjet.com'; //Set the SMTP server to send through
$mail->SMTPAuth = true;
$mail->Username = '81beb205b1d9a4190b9acb3fa94fc024';
$mail->Password = 'ec979bd6ac550f5c141148665c0e4296';
$mail->SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS; //Enable TLS encryption; `PHPMailer::ENCRYPTION_SMTPS` encouraged
$mail->Port = 587; //TCP port to connect to, use 465 for `PHPMailer::ENCRYPTION_SMTPS` above
@ -57,6 +60,8 @@ if ($_POST['name'] != null && $_POST['email'] != null && $_POST['phone'] && $_PO
$mail->send();
} catch (Exception $e) {
// error_log($e);
// echo "Message could not be sent. Mailer Error: {$mail->ErrorInfo}";
http_response_code(500);
}
}else{