Ok ran through your code a few times changing little pieces as they complained about incorrect variables, however, no matter what I do I always get a "call to mail() failed" message. This leads me to think that there is a server side problem.
I'm using this code.
<?php
ini_set('display_errors', 1);
error_reporting(E_ALL);
//
// ...yadda yadda yadda
//
$result = mail("my_email@hotmail.com", "Message from website",
"body of da message", "From: okemail@address");
if($result == FALSE)
{
die("call to mail() failed");
echo("failed");
}
header( "Location: a_page.html" );
?>
and just get one line with the call to mail() failed on it. http://webguardians.awardspace.com/mailerrors.php
So if there is something I can do that will check my server settings I'm open to it. You can check my phpinfo at http://webguardians.awardspace.com/test.php
Me thinks a more experienced code will see where my problem lies.
Cheers.