Remove auto-reply emails from contact forms to prevent spam
🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -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 = '
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Quote Request Received</title>
|
||||
<style>
|
||||
body { font-family: Arial, sans-serif; line-height: 1.6; color: #333; }
|
||||
.container { max-width: 600px; margin: 0 auto; padding: 20px; }
|
||||
.header { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; padding: 30px; text-align: center; border-radius: 8px 8px 0 0; }
|
||||
.content { background: #f9f9f9; padding: 30px; border-radius: 0 0 8px 8px; }
|
||||
.highlight-box { background: #e3f2fd; padding: 20px; border-radius: 8px; margin: 20px 0; border-left: 4px solid #667eea; }
|
||||
.cta-box { background: #667eea; color: white; padding: 20px; text-align: center; margin: 20px 0; border-radius: 8px; }
|
||||
.next-steps { background: white; padding: 20px; border-radius: 8px; margin: 20px 0; }
|
||||
.step { display: flex; align-items: flex-start; margin-bottom: 15px; }
|
||||
.step-number { background: #667eea; color: white; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; margin-right: 15px; flex-shrink: 0; }
|
||||
.footer { text-align: center; padding: 20px; color: #666; font-size: 14px; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<div class="header">
|
||||
<h1>✅ Quote Request Received!</h1>
|
||||
<p>UK Data Services</p>
|
||||
</div>
|
||||
|
||||
<div class="content">
|
||||
<p>Dear ' . htmlspecialchars($name) . ',</p>
|
||||
|
||||
<p>Thank you for your detailed quote request! We have received your inquiry for <strong>' . implode(', ', $selected_services) . '</strong> and our team is already reviewing your requirements.</p>
|
||||
|
||||
<div class="highlight-box">
|
||||
<h3>📋 Your Request Summary:</h3>
|
||||
<p><strong>Project Scale:</strong> ' . htmlspecialchars($friendly_scale) . '</p>
|
||||
<p><strong>Timeline:</strong> ' . htmlspecialchars($friendly_timeline) . '</p>
|
||||
<p><strong>Services:</strong> ' . implode(', ', $selected_services) . '</p>
|
||||
</div>
|
||||
|
||||
<div class="cta-box">
|
||||
<h3>⏱️ What Happens Next?</h3>
|
||||
<p>Our data specialists will analyse your requirements and prepare a comprehensive proposal within <strong>24 hours</strong>.</p>
|
||||
</div>
|
||||
|
||||
<div class="next-steps">
|
||||
<h3>📝 Our Process:</h3>
|
||||
<div class="step">
|
||||
<div class="step-number">1</div>
|
||||
<div>
|
||||
<strong>Requirements Analysis</strong><br>
|
||||
Our team reviews your project details and data sources
|
||||
</div>
|
||||
</div>
|
||||
<div class="step">
|
||||
<div class="step-number">2</div>
|
||||
<div>
|
||||
<strong>Technical Assessment</strong><br>
|
||||
We evaluate the complexity and create a project plan
|
||||
</div>
|
||||
</div>
|
||||
<div class="step">
|
||||
<div class="step-number">3</div>
|
||||
<div>
|
||||
<strong>Detailed Proposal</strong><br>
|
||||
You receive a comprehensive quote with timeline and deliverables
|
||||
</div>
|
||||
</div>
|
||||
<div class="step">
|
||||
<div class="step-number">4</div>
|
||||
<div>
|
||||
<strong>Consultation Call</strong><br>
|
||||
We schedule a call to discuss your project and answer questions
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<p>In the meantime, if you have any urgent questions or need to discuss your project immediately, please don\'t hesitate to contact us:</p>
|
||||
|
||||
<ul>
|
||||
<li>📞 <strong>Phone:</strong> +44 1692 689150</li>
|
||||
<li>📧 <strong>Email:</strong> info@ukdataservices.co.uk</li>
|
||||
<li>💬 <strong>Response Time:</strong> Within 24 hours</li>
|
||||
</ul>
|
||||
|
||||
<div class="highlight-box">
|
||||
<h3>🎯 Why Choose UK Data Services?</h3>
|
||||
<p>✓ 99.9% Data Accuracy Guarantee<br>
|
||||
✓ GDPR Compliant & Secure<br>
|
||||
✓ 24/7 Support & Monitoring<br>
|
||||
✓ Scalable Solutions<br>
|
||||
✓ Experienced Team</p>
|
||||
</div>
|
||||
|
||||
<p>We\'re excited to help transform your business with professional data solutions!</p>
|
||||
|
||||
<p>Best regards,<br>
|
||||
<strong>The UK Data Services Team</strong></p>
|
||||
</div>
|
||||
|
||||
<div class="footer">
|
||||
<p>UK Data Services | Professional Data Solutions<br>
|
||||
Website: https://ukdataservices.co.uk | Phone: +44 1692 689150</p>
|
||||
<p><small>This is an automated response. Your request has been logged with reference: QR-' . date('Ymd') . '-' . substr(md5($email . time()), 0, 6) . '</small></p>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>';
|
||||
|
||||
$autoReplyHeaders = "MIME-Version: 1.0\r\n";
|
||||
$autoReplyHeaders .= "Content-Type: text/html; charset=UTF-8\r\n";
|
||||
$autoReplyHeaders .= "From: \"UK Data Services\" <info@ukdataservices.co.uk>\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 {
|
||||
|
||||
Reference in New Issue
Block a user