From 414eaa10f66d098eb57060bdaaaed4e84112483e Mon Sep 17 00:00:00 2001 From: luke-else <52086083+luke-else@users.noreply.github.com> Date: Fri, 29 Oct 2021 22:26:58 +0100 Subject: [PATCH] Site Re-Upload --- examples.php | 2 +- includes/footer.php | 2 +- includes/mail/contact_me.js | 2 +- includes/mail/contact_me.php | 7 ++++++- index.php | 2 +- 5 files changed, 10 insertions(+), 5 deletions(-) diff --git a/examples.php b/examples.php index 3a8364c..7b9dc37 100644 --- a/examples.php +++ b/examples.php @@ -34,7 +34,7 @@
  • Collectors Items
  • Toys
  • Memorabilia
  • -
  • Military / Camping / Camping Gear
  • +
  • Military / Camping Gear
  • diff --git a/includes/footer.php b/includes/footer.php index 65f3a5d..6ea62da 100644 --- a/includes/footer.php +++ b/includes/footer.php @@ -20,7 +20,7 @@

    Around the Web

    - +
    diff --git a/includes/mail/contact_me.js b/includes/mail/contact_me.js index 571be65..bbdb03a 100644 --- a/includes/mail/contact_me.js +++ b/includes/mail/contact_me.js @@ -57,7 +57,7 @@ $(function () { $("").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("
    "); diff --git a/includes/mail/contact_me.php b/includes/mail/contact_me.php index e97666f..3cb2b59 100644 --- a/includes/mail/contact_me.php +++ b/includes/mail/contact_me.php @@ -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{ diff --git a/index.php b/index.php index 2fddfdc..716acc6 100644 --- a/index.php +++ b/index.php @@ -39,7 +39,7 @@
    -

    Snexo is a Kent based Clearance Solution specialising in contents evaluation and removal. Our aim is to breathe new life into your old unwanted posessions. We hate nothing more than to see goods going into landfill and so we are going out of our way to recycle and re-purpose everyday household items from old clothes all the way to furniture and electrical items.

    +

    Snexo is a Kent based Clearance Solution specialising in contents evaluation and removal. Our aim is to breathe new life into your old unwanted possessions. We hate nothing more than to see goods going into landfill and so we are going out of our way to recycle and re-purpose everyday household items from old clothes all the way to furniture and electrical items.

    Not only do we stop your old items from going to waste, but we actually save you time too! There is no need to worry about pricing up your contents and trying to sell it on; we do all the work for you. We have years of market experience and know the trends in items and so we are prepared to make reasonable offers in exchange for you possessions.