|
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/klengineers/ |
Upload File : |
<?php
include('config/config.php');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
<?php
extract($_POST);
$headers = "From: ".$email."\n";
$headers .= "MIME-Version: 1.0\nContent-Type: text/html; charset=iso-8859-1";
$sub="KELLEN AND LEMELSON";
$content="<table align='center' cellpadding='6' cellspacing='4' border='0' bordercolor='#666666' bgcolor='#877e7e'>
<tr align='center'><td colspan='2'><img src='http://247nywebdesign.com/Testing/Kallen-Lemelson/php/images/logo.png'/></td></tr>
<tr><td width='200px'>Contact Name</td><td width='400px'>$name</td></tr>
<tr><td width='200px'>Email</td><td width='400px'>$email</td></tr>
<tr><td width='200px'>Phone Number</td><td width='400px'>$phone</td></tr>
<tr><td width='200px'>Subject</td><td width='400px'>$subject</td></tr>
<tr><td width='200px'>Message</td><td width='400px'>$message</td></tr>
</table>";
$msgSent=@mail("[email protected]",$sub,$content,$headers);
//[email protected]
//$msgSent=@mail("[email protected]",$sub,$content,$headers);
if($msgSent)
{
echo "<script> alert('Message sent');</script>";
}
else
{
echo "<script> alert('Message not sent...Connection problem!');</script>";
}
echo "<script> window.location.href='contact.php'; </script>";
?>
</body>
</html>