mirror of
https://github.com/myronblair/tomsjavajive
synced 2026-06-30 09:40:24 -05:00
Fix contact form 500 — use sendEmail() not cybermailSend()
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
+2
-2
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user