<?php

$name = $_POST['name'];
$phone = $_POST['phone'];
$email = $_POST['email'];
$category = $_POST['category'];
$message = $_POST['message'];

$to = "mitwaapparel@gmail.com";

$subject = "New Enquiry - Mitwa Garments";

$body = "
Name: $name

Phone: $phone

Email: $email

Category: $category

Requirement:
$message
";

$headers = "From: noreply@mitwagarments.com\r\n";
$headers .= "Reply-To: $email\r\n";

mail($to,$subject,$body,$headers);

echo "success";

?>