Been ages since I used the mail functions... *nix or Windows server? (ie direct call to *nix sendmail vs use of php's mail functions...)
Last time I used mail in php I borrowed code from phpbb's account activation code as I recall...
Try here for info:
http://www.php.net/manual/en/ref.mail.phphttp://www.php.net/manual/en/ref.imap.phphttp://www.hotscripts.com/PHP/Scripts_and_Programs/Email_Systems/Perhaps your troubles might be how you are retrieving the variables posted by the form? (i.e. in php5 use $_POST['variablename'] if the POST method was used by the form... (where 'variablename' corresponds to the name of the form input field that data is desired from)
here's a little script I started playing with while bored the other day - no mail functions - but may help you with forms submission and posted variables... the script posts to itself...
<?php
echo ("<html>");
echo ("<head>");
echo ("<title>The Oracle</title>");
echo ("</head>");
echo ("<body>");
echo ("<h1>Thinker</h1>");
echo ("<hr><br><br>");
echo ("<form method=POST action=");
echo $_SERVER['PHP_SELF'];
echo (">");
echo ("Enter a question for the oracle:<br><br>");
echo ("<input type=text name=question size=100><br><br>");
echo ("<input type=submit value=Ask! name=ask>");
echo ("</form>");
echo ("<hr><br><br>");
if (isset($_POST['question'])){
$question=strtolower(trim($_POST['question']));
echo ("Reply:<br><br>");
if($question==""){
echo ("Please enter a question. I'm not a mind reader!");
}
if(substr($question,0,3)=="who"){
echo ("You!");
}
if(substr($question,0,4)=="what"){
echo ("Something!");
}
if(substr($question,0,4)=="when"){
echo ("Sometime!");
}
if(substr($question,0,5)=="where"){
echo ("Somewhere!");
}
if(substr($question,0,3)=="why"){
echo ("Because!");
}
if(substr($question,0,3)=="how"){
if(substr($question,0,8)=="how many"){
echo mt_rand(1,10);
} else {
echo ("Some way!");
}
}
}
echo ("</body>");
echo ("</html>");
?>
Notice I do not escape back and forth between php and html but rather have php output all the desired html (improves server performance and simplifies things). (Dynaverse.net scripts need a lot of work in this respect.) Note that you can omit certain quotes useage in html output but can output actual quotations by escaping with a slash... i.e.: \" ...or a single quote will often do... I've omitted most of them in the html output by the script above but it is best to use proper quotes where needed.
Post your script here (minus passwords etc) if you like and I can take a look at it and see if I have any suggestions.