I don't see any ftp or dreamweaver relevant code here but i will build you a new code which works brilliantly for me.
you need to specify a content type for html coding to work.
and an id tag to retrieve the post variables
feedback form
<!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>Feedback Form</title>
</head>
<body>
<form method="post" action="sendmail.php">
Email: <input id="email" name="email" type="text" /><br />
Message:<br /> <textarea id="message" name="message" rows="15" cols="40"> </textarea><br /> <input type="submit" />
</form></body></html>
sendmail.php
if (isset($_POST['email'])){
/* Email Variables */
$emailSubject = 'feedback form results';
$webMaster = 'pro7908@setonhill.edu';
/* Data Variables */
$email = $_POST['email'];
$message = $_POST['message'];
$body = <<<EOD
<br><hr><br>
Email: $email <br>
Message: $message<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="1;URL=http://www.setonhill.edul/">
<style type="text/css">
<!--
body {
background-color: #000;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 20px;
font-style: normal;
line-height: normal;
font-weight: normal;
color: #CCC;
text-decoration: none;
padding-top: 200px;
margin-left: 150px;
width: 800px;
}
-->
</style>
</head>
<div align="center">Your message has been received!<br />
You will return to The our home page shortly</div>
</div>
</body>
</html>
EOD;
echo "$theResults";
}
else {
$theResults = <<<EOD
<html>
<head>
<title>sent message</title>
<meta http-equiv="refresh" content="1;URL=http://www.setonhill.edul/">
</head>
</div>
</body>
</html>
EOD;
echo "$theResults";
}
?>