Flash Mailer Problems

Hey guys,

I have been using mailform.php forever. Then I just changed my server and know I am getting these errors:

http://keystonelicensing.com/MODS/mailform.php

The script works fine on three different servers but I can’t get working on this new server. You think it has to do with the php settings in the ini?

Here is the code that I am using:

<?  
$adminaddress = "test@test.com"; 
$siteaddress ="http://test.com"; 
$sitename = "testCo"; 

//No need to change anything below ... 
// Gets the date and time from your server
$date = date("m/d/Y H:i:s");

// Gets the IP Address
if ($REMOTE_ADDR == "") $ip = "no ip";
else $ip = getHostByAddr($REMOTE_ADDR);

// Gets the POST Headers - the Flash variables
$action = $HTTP_POST_VARS['action'] ;
$email = $HTTP_POST_VARS['email'] ;
$fname = $HTTP_POST_VARS['fname'] ;
$lname = $HTTP_POST_VARS['lname'] ;
$cname = $HTTP_POST_VARS['cname'] ;
$telno = $HTTP_POST_VARS['telno'] ;
$comments = $HTTP_POST_VARS['comments'] ;

//Process the form data!
// and send the information collected in the Flash form to Your nominated email address

if ($action == "send") {
	//
	mail ("$adminaddress","Info Request",
	"A visitor at $sitename has left the following information

	First Name: $fname 
	Last Name: $lname
	Email: $email
	Company: $cname
	Telephone: $telno

	The visitor commented:
	------------------------------
	$comments
	
	Logged Info :
	------------------------------
	Using: $HTTP_USER_AGENT
	Hostname: $ip
	IP address: $REMOTE_ADDR
	Date/Time:  $date","FROM:$adminaddress" ) ; 
	
	//This sends a confirmation to your visitor
	mail ("$email","Thank You for visiting $sitename", 
	"Hi $fname,

	Thank you for your interest in $sitename!

	Thanks,
	$sitename
	$siteaddress","FROM:$adminaddress") ; 
	
	//Confirmation is sent back to the Flash form that the process is complete
	$sendresult = "Thank you. You will receive a confirmation email shortly.";
	$send_answer = "answer=";
	$send_answer .= rawurlencode($sendresult);
	echo $send_answer;
} //


?>

I also tried $_POST and that did not work.

Thanks guys!!!
:thumb2: