InboxWithAI Logo

InboxWithAI

Contact Us

Get in touch with our team. We're here to help you with your AI-powered email needs.

Company

Mvisio Information System Private Limited

Leading AI-powered email solutions provider

Address

Elegance Residency

Dilshadnagar Colony

Hyderabad, TS 500028

India

Send Message

Have a question? Send us a message and we'll get back to you.

Why Choose InboxWithAI?

We're committed to providing the best AI-powered email infrastructure solutions to help your business succeed.

24/7 Support

Round-the-clock technical support for all our clients

Secure & Reliable

Enterprise-grade security with 99.9% uptime guarantee

AI-Powered

Advanced artificial intelligence for better email performance

setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); } catch(PDOException $e) { echo json_encode(['success' => false, 'message' => 'Database connection failed']); exit; } $name = trim($_POST['name']); $email = trim($_POST['email']); $phone = trim($_POST['phone']); $subject = trim($_POST['subject']); $message = trim($_POST['message']); $captchaInput = $_POST['captchaInput']; $captchaHidden = $_POST['captchaHidden']; // Validate inputs if (empty($name) || empty($email) || empty($subject) || empty($message) || empty($captchaInput)) { echo json_encode(['success' => false, 'message' => 'All required fields must be filled']); exit; } // Validate CAPTCHA if ($captchaInput !== $captchaHidden) { echo json_encode(['success' => false, 'message' => 'CAPTCHA verification failed']); exit; } // Validate email format if (!filter_var($email, FILTER_VALIDATE_EMAIL)) { echo json_encode(['success' => false, 'message' => 'Invalid email format']); exit; } // Create table if not exists $createTable = "CREATE TABLE IF NOT EXISTS contact_tbl ( id INT AUTO_INCREMENT PRIMARY KEY, name VARCHAR(100) NOT NULL, email VARCHAR(150) NOT NULL, phone VARCHAR(20), subject VARCHAR(200) NOT NULL, message TEXT NOT NULL, created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP )"; $pdo->exec($createTable); // Insert contact into database $stmt = $pdo->prepare("INSERT INTO contact_tbl (name, email, phone, subject, message, created_at) VALUES (?, ?, ?, ?, ?, NOW())"); if ($stmt->execute([$name, $email, $phone, $subject, $message])) { echo json_encode(['success' => true, 'message' => 'Message sent successfully']); } else { echo json_encode(['success' => false, 'message' => 'Failed to send message']); } } ?>