From 47345e5849b724048337e01abb3e7394dba8338b Mon Sep 17 00:00:00 2001 From: Peter Date: Tue, 17 Jun 2025 18:39:22 +0100 Subject: [PATCH] Remove auto-reply emails from contact forms to prevent spam MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- contact-handler.php | 64 ------------------------ quote-handler.php | 115 -------------------------------------------- 2 files changed, 179 deletions(-) diff --git a/contact-handler.php b/contact-handler.php index 4e1f571..977eb4e 100644 --- a/contact-handler.php +++ b/contact-handler.php @@ -258,70 +258,6 @@ try { $logEntry = date('Y-m-d H:i:s') . " - Contact form submission from " . $email . " (" . $_SERVER['REMOTE_ADDR'] . ")\n"; file_put_contents('logs/contact-submissions.log', $logEntry, FILE_APPEND | LOCK_EX); - // Send auto-reply to user - $autoReplySubject = 'Thank you for contacting UK Data Services'; - $autoReplyHTML = ' - - - - - Thank you for your inquiry - - - -
-
-

Thank You for Your Inquiry

-

UK Data Services

-
- -
-

Dear ' . htmlspecialchars($name) . ',

- -

Thank you for contacting UK Data Services. We have received your inquiry and one of our data specialists will review your requirements and respond within 24 hours.

- -
-

What happens next?

-

• Our team will analyse your data requirements
- • We will prepare a customised solution proposal
- • You will receive a detailed quote and timeline
- • We can schedule a consultation call if needed

-
- -

In the meantime, feel free to:

-
    -
  • Call us directly at +44 1692 689150
  • -
  • Visit our website for more information about our services
  • -
  • Follow us on LinkedIn for industry insights
  • -
- -

We look forward to helping you transform your business with professional data solutions.

- -

Best regards,
- The UK Data Services Team

-
- - -
- -'; - - $autoReplyHeaders = "MIME-Version: 1.0\r\n"; - $autoReplyHeaders .= "Content-Type: text/html; charset=UTF-8\r\n"; - $autoReplyHeaders .= "From: \"UK Data Services\" \r\n"; - $autoReplyHeaders .= "X-Mailer: PHP/" . phpversion() . "\r\n"; - - mail($email, $autoReplySubject, $autoReplyHTML, $autoReplyHeaders); sendResponse(true, 'Thank you for your message! We will get back to you within 24 hours.'); } else { diff --git a/quote-handler.php b/quote-handler.php index 49aa7d7..5a26686 100644 --- a/quote-handler.php +++ b/quote-handler.php @@ -298,121 +298,6 @@ try { $logEntry = date('Y-m-d H:i:s') . " - Quote request from " . $email . " (" . $_SERVER['REMOTE_ADDR'] . ") - Services: " . implode(', ', $services) . "\n"; file_put_contents('logs/quote-requests.log', $logEntry, FILE_APPEND | LOCK_EX); - // Send detailed auto-reply to user - $autoReplySubject = 'Your Quote Request - UK Data Services'; - $autoReplyHTML = ' - - - - - Quote Request Received - - - -
-
-

✅ Quote Request Received!

-

UK Data Services

-
- -
-

Dear ' . htmlspecialchars($name) . ',

- -

Thank you for your detailed quote request! We have received your inquiry for ' . implode(', ', $selected_services) . ' and our team is already reviewing your requirements.

- -
-

📋 Your Request Summary:

-

Project Scale: ' . htmlspecialchars($friendly_scale) . '

-

Timeline: ' . htmlspecialchars($friendly_timeline) . '

-

Services: ' . implode(', ', $selected_services) . '

-
- -
-

⏱️ What Happens Next?

-

Our data specialists will analyse your requirements and prepare a comprehensive proposal within 24 hours.

-
- -
-

📝 Our Process:

-
-
1
-
- Requirements Analysis
- Our team reviews your project details and data sources -
-
-
-
2
-
- Technical Assessment
- We evaluate the complexity and create a project plan -
-
-
-
3
-
- Detailed Proposal
- You receive a comprehensive quote with timeline and deliverables -
-
-
-
4
-
- Consultation Call
- We schedule a call to discuss your project and answer questions -
-
-
- -

In the meantime, if you have any urgent questions or need to discuss your project immediately, please don\'t hesitate to contact us:

- -
    -
  • 📞 Phone: +44 1692 689150
  • -
  • 📧 Email: info@ukdataservices.co.uk
  • -
  • 💬 Response Time: Within 24 hours
  • -
- -
-

🎯 Why Choose UK Data Services?

-

✓ 99.9% Data Accuracy Guarantee
- ✓ GDPR Compliant & Secure
- ✓ 24/7 Support & Monitoring
- ✓ Scalable Solutions
- ✓ Experienced Team

-
- -

We\'re excited to help transform your business with professional data solutions!

- -

Best regards,
- The UK Data Services Team

-
- - -
- -'; - - $autoReplyHeaders = "MIME-Version: 1.0\r\n"; - $autoReplyHeaders .= "Content-Type: text/html; charset=UTF-8\r\n"; - $autoReplyHeaders .= "From: \"UK Data Services\" \r\n"; - $autoReplyHeaders .= "X-Mailer: PHP/" . phpversion() . "\r\n"; - - mail($email, $autoReplySubject, $autoReplyHTML, $autoReplyHeaders); sendResponse(true, 'Thank you for your quote request! We will send you a detailed proposal within 24 hours.'); } else {