else if(isset($_POST['contactForm'])) { $to = "you@example.com"; // Change to your email $name = trim($_POST['name']); $email = trim($_POST['email']); $phone = trim($_POST['phone']); $zipcode = trim($_POST['zipcode']); $message = trim($_POST['message']); $headers = "From: " . $email . "\r\n"; $headers .= "Reply-To: " . $email . "\r\n"; $headers .= "MIME-Version: 1.0\r\n"; $headers .= "Content-Type: text/html; charset=UTF-8\r\n"; $subject = "New ADU Consultation Request | ADU in Los Angeles"; $body = '
| New Contact Form Submission | |
| Full Name | '.$name.' |
| '.$email.' | |
| Phone | '.$phone.' |
| ZIP Code | '.$zipcode.' |
| Project Details | '.nl2br($message).' |
| Submitted from the ADU in Los Angeles website. | |