so I'm using flash which calls a php email form. I've used the form before and it works perfectly except now I'm trying it on a clients server (godaddy.com) and I just found out through tech support that godaddy doesn't support mail() . they say due to spammers? ok so is there another function to call instead of mail()?
this is the script I need to work.
<?php
$ToEmail = 'email@email.com';
$ToSubject = "subject line here";
$EmailBody = "SENT BY: $Name\n\nATTENDING?: $radio\n\nNUMBER OF PEOPLE: $NumberPeople\n";
mail($ToName." <".$ToEmail.">",$ToSubject, $EmailBody, "From: ".$Name." <".$Email.">");
?>
and this is godaddy's php email code.
<?php
$request_method = $_SERVER["REQUEST_METHOD"];
if($request_method == "GET"){
$query_vars = $_GET;
} elseif ($request_method == "POST"){
$query_vars = $_POST;
}
reset($query_vars);
$t = date("U");
$fp = fopen("../data/gdform_$t","w");
while (list ($key, $val) = each ($query_vars)) {
fputs($fp,"<GDFORM_VARIABLE NAME=$key START>\n");
fputs($fp,"$val\n");
fputs($fp,"<GDFORM_VARIABLE NAME=$key END>\n");
if ($key == "redirect") { $landing_page = $val;}
}
fclose($fp);
if ($landing_page != ""){
header("Location: ["HTTP_HOST"]."/$landing_page");
} else {
header("Location: ["HTTP_HOST"]."/");
}
?>
any help would be apprciated.
this is the script I need to work.
<?php
$ToEmail = 'email@email.com';
$ToSubject = "subject line here";
$EmailBody = "SENT BY: $Name\n\nATTENDING?: $radio\n\nNUMBER OF PEOPLE: $NumberPeople\n";
mail($ToName." <".$ToEmail.">",$ToSubject, $EmailBody, "From: ".$Name." <".$Email.">");
?>
and this is godaddy's php email code.
<?php
$request_method = $_SERVER["REQUEST_METHOD"];
if($request_method == "GET"){
$query_vars = $_GET;
} elseif ($request_method == "POST"){
$query_vars = $_POST;
}
reset($query_vars);
$t = date("U");
$fp = fopen("../data/gdform_$t","w");
while (list ($key, $val) = each ($query_vars)) {
fputs($fp,"<GDFORM_VARIABLE NAME=$key START>\n");
fputs($fp,"$val\n");
fputs($fp,"<GDFORM_VARIABLE NAME=$key END>\n");
if ($key == "redirect") { $landing_page = $val;}
}
fclose($fp);
if ($landing_page != ""){
header("Location: ["HTTP_HOST"]."/$landing_page");
} else {
header("Location: ["HTTP_HOST"]."/");
}
?>
any help would be apprciated.