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

@ -20,7 +20,7 @@
<h4 class="text-uppercase mb-4">Around the Web</h4>
<a class="btn btn-outline-light btn-social mx-1" href="tel:07726305634"><i class="fas fa-fw fa-phone"></i></a>
<a class="btn btn-outline-light btn-social mx-1" href="mailto:enquiries@snexo.co.uk"><i class="fas fa-fw fa-envelope"></i></a>
<a class="btn btn-outline-light btn-social mx-1" href="#!"><i class="fab fa-fw fa-facebook-f"></i></a>
<a class="btn btn-outline-light btn-social mx-1" href="https://www.facebook.com/Snexo-House-Clearance-104756191869048"><i class="fab fa-fw fa-facebook-f"></i></a>
</div>
<!-- Footer About Text-->
<div class="col-lg-4">

View File

@ -57,7 +57,7 @@ $(function () {
$("<strong>").text(
"Sorry " +
firstName +
", an error occured! Please try again!"
", an error occured! Please try again or mail enquiries@snexo.co.uk directly!"
)
);
$("#success > .alert-danger").append("</div>");

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{