diff --git a/contact_handler.php b/contact_handler.php
deleted file mode 100644
index 19dc9b0..0000000
--- a/contact_handler.php
+++ /dev/null
@@ -1,76 +0,0 @@
- false, 'message' => 'Please fill in all required fields and try again.']);
- exit;
- }
-
- // Create new PHPMailer object
- $mail = new PHPMailer(true);
-
- try {
- // SMTP settings for sending via Gmail
- $mail->isSMTP();
- $mail->Host = 'smtp.gmail.com'; // Gmail server
- $mail->SMTPAuth = true;
- $mail->Username = 'scandrone308@gmail.com'; // Your Gmail address for sending
- $mail->Password = 'your_app_password'; // App password (explained below)
- $mail->SMTPSecure = PHPMailer::ENCRYPTION_SMTPS; // Encryption (SSL)
- $mail->Port = 465; // Gmail port
-
- // Who will receive the email
- $mail->setFrom('from@yourwebsite.com', 'Website Contact Form'); // Dummy sender email
- $mail->addAddress('bayan10kh@gmail.com', 'Bayan'); // Your email to receive messages
-
- // Email content
- $mail->isHTML(true); // Enable HTML in email
- $mail->Subject = 'New message from contact form';
-
- // Build message body
- $email_content = "
You have received a new message from your website:
";
- $email_content .= "Name: {$name}
";
- $email_content .= "Email: {$email}
";
- $email_content .= "Phone: {$phone}
";
- $email_content .= "Message:
{$message}
";
-
- $mail->Body = $email_content;
- $mail->AltBody = "Name: {$name}\nEmail: {$email}\nPhone: {$phone}\nMessage:\n{$message}"; // Text version of email
-
- $mail->send();
-
- // Return success response
- echo json_encode(['success' => true, 'message' => 'Your message has been sent successfully!']);
- exit;
-
- } catch (Exception $e) {
- // Handle error
- http_response_code(500);
- echo json_encode(['success' => false, 'message' => "Sorry, your message could not be sent. Error: {$mail->ErrorInfo}"]);
- exit;
- }
-
-} else {
- // If not accessed via POST
- http_response_code(403);
- echo json_encode(['success' => false, 'message' => 'There was a problem with your request, please try again.']);
- exit;
-}
-?>
\ No newline at end of file
diff --git a/docker-compose.yml b/docker-compose.yml
deleted file mode 100644
index 74c7d9d..0000000
--- a/docker-compose.yml
+++ /dev/null
@@ -1,37 +0,0 @@
-version: '3.8'
-
-services:
- # Frontend service using Nginx
- frontend:
- build:
- context: .
- dockerfile: Dockerfile
- ports:
- - "80:80"
- depends_on:
- - backend
- environment:
- - BACKEND_HOST=backend
- - BACKEND_PORT=3001
- networks:
- - app-network
-
- # Backend service
- backend:
- build:
- context: .
- dockerfile: Dockerfile.backend
- ports:
- - "3001:3001"
- environment:
- - PORT=3001
- - EMAIL_USER=${EMAIL_USER}
- - EMAIL_PASS=${EMAIL_PASS}
- env_file:
- - .env
- networks:
- - app-network
-
-networks:
- app-network:
- driver: bridge
\ No newline at end of file