'Home', 'url' => 'https://tomsjavajive.com'], ['name' => 'Contact', 'url' => 'https://tomsjavajive.com/contact.php'] ]; require_once __DIR__ . '/includes/functions.php'; $sent = false; $errors = []; if ($_SERVER['REQUEST_METHOD'] === 'POST') { $name = trim($_POST['name'] ?? ''); $email = trim($_POST['email'] ?? ''); $subject = trim($_POST['subject'] ?? ''); $message = trim($_POST['message'] ?? ''); if (empty($name)) $errors['name'] = 'Name is required.'; if (empty($email) || !filter_var($email, FILTER_VALIDATE_EMAIL)) $errors['email'] = 'A valid email address is required.'; if (empty($subject)) $errors['subject'] = 'Please choose a subject.'; if (empty($message)) $errors['message'] = 'Message cannot be empty.'; if (empty($errors)) { $html = "

Name: {$name}
Email: {$email}
Subject: {$subject}

" . nl2br(htmlspecialchars($message)) . "

"; sendEmail('sales@tomsjavajive.com', "Contact Form: {$subject}", $html); $sent = true; } } require_once __DIR__ . '/includes/header.php'; ?>

Contact Us

Questions about your order or just want to talk coffee? We'd love to hear from you.

Get in Touch

Email
sales@tomsjavajive.com
We reply within 1 business day
Phone
(817) 266-2022
Mon–Fri, 9am–5pm CT
Location
Weatherford, TX 76088
United States

Message Sent!

Thanks for reaching out. We'll get back to you within one business day.

Browse Our Coffee

Send a Message