Fix contact form 500 — use sendEmail() not cybermailSend()

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-15 18:50:59 +00:00
parent c1c926a416
commit 73143577e3
+2 -2
View File
@@ -24,8 +24,8 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
if (empty($message)) $errors['message'] = 'Message cannot be empty.';
if (empty($errors)) {
$body = "Name: {$name}\nEmail: {$email}\nSubject: {$subject}\n\n{$message}";
cybermailSend('sales@tomsjavajive.com', "Contact Form: {$subject}", $body, $name, $email);
$html = "<p><strong>Name:</strong> {$name}<br><strong>Email:</strong> {$email}<br><strong>Subject:</strong> {$subject}</p><p>" . nl2br(htmlspecialchars($message)) . "</p>";
sendEmail('sales@tomsjavajive.com', "Contact Form: {$subject}", $html);
$sent = true;
}
}