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:
@@ -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 = '
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Thank you for your inquiry</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: 20px; text-align: center; }
|
||||
.content { background: #f9f9f9; padding: 20px; }
|
||||
.cta { background: #667eea; color: white; padding: 15px; text-align: center; margin: 20px 0; }
|
||||
.footer { text-align: center; padding: 20px; color: #666; font-size: 12px; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<div class="header">
|
||||
<h1>Thank You for Your Inquiry</h1>
|
||||
<p>UK Data Services</p>
|
||||
</div>
|
||||
|
||||
<div class="content">
|
||||
<p>Dear ' . htmlspecialchars($name) . ',</p>
|
||||
|
||||
<p>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.</p>
|
||||
|
||||
<div class="cta">
|
||||
<h3>What happens next?</h3>
|
||||
<p>• Our team will analyse your data requirements<br>
|
||||
• We will prepare a customised solution proposal<br>
|
||||
• You will receive a detailed quote and timeline<br>
|
||||
• We can schedule a consultation call if needed</p>
|
||||
</div>
|
||||
|
||||
<p>In the meantime, feel free to:</p>
|
||||
<ul>
|
||||
<li>Call us directly at <strong>+44 1692 689150</strong></li>
|
||||
<li>Visit our website for more information about our services</li>
|
||||
<li>Follow us on LinkedIn for industry insights</li>
|
||||
</ul>
|
||||
|
||||
<p>We look forward to helping you 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>
|
||||
</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 message! We will get back to you within 24 hours.');
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user