|
Server : Apache/2.4.62 System : FreeBSD fbsdweb2.web.rcn.net 14.1-RELEASE FreeBSD 14.1-RELEASE releng/14.1-n267679-10e31f0946d8 GENERIC amd64 User : www ( 80) PHP Version : 8.3.8 Disable Function : NONE Directory : /domains/duvallgroupweb/ |
Upload File : |
<?php
/* Email Variables */
$emailSubject = 'contact';
$webMaster = '[email protected],[email protected]';
/* Data Variables */
$name = $_POST['name'];
$organization = $_POST['organization'];
$title = $_POST['title'];
$phone = $_POST['phone'];
$email = $_POST['email'];
$comments = $_POST['comments'];
$body = <<<EOD
<br><hr><br>
name: $name <br>
organization: $organization <br>
title: $title <br>
phone: $phone <br>
email: $email <br>
subject: $subject <br>
comments: $comments <br>
EOD;
$headers = "From: $email\r\n";
$headers .= "Content-type: text/html\r\n";
$success = mail($webMaster, $emailSubject, $body, $headers);
/* Results rendered as HTML */
$theResults = <<<EOD
<html>
<head>
<title>sent message</title>
<meta http-equiv="refresh" content="3;URL=http://www.duvallgroup.com/index.html">
<style type="text/css">
<!--
body {
background-color: #002649; /* You can edit this CSS to match your website*/
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 20px;
font-style: normal;
line-height: normal;
font-weight: bold;
color: #ffffff;
text-decoration: none;
padding-top: 200px;
margin-left: 150px;
width: 800px;
}
-->
</style>
</head>
<div align="center">Thanks for sending email to The Duvall Group.</div>
</div>
</body>
</html>
EOD;
echo "$theResults";
?>