-
If(!$sub){
?>
Created by JND Designs the PHP specialists
} else{
Function error($req){
echo"
";exit;
}
If(!$Name){error('Name');}
If(!$Email){error('Email');}
if($f[0] == ""){error('Friend 1 Email');}
$count= count($f);
For ($i= 1; $i <= $count; $i++) {
if (!$f[$i] == ""){
if(!eregi("[0-9a-z]([-_.+]?[0-9a-z])*@[0-9a-z]([-.]?[0-9a-z])*\\.[a-z]{2,}$", $f[$i])) {
$friend=$i+1;
echo"
The email address of Friend $friend,
$f[$i],
does not appear to be valid.
"; exit; }
}
}
If(!$Message){error('Message');}
echo"
Obrigado Por nos Recomendar.
";
for ($i= 0; $i <= $count; $i++) {
mail($f[$i], $Subject, $Message,"From: $Name<$Email>\r\nReply-To: $Name<$Email>\r\n");
}
If(isset($mailtoMe)){
$msg= "Name: $Name
Email: $Email
-------------------------------------------------------------------
Mails sent to:\n";
$msg .=implode("\n", $f);
$msg .="\n-------------------------------------------------------------------";
mail($AdminEmail,"PleaseTell Form",$msg,"From: $Name<$Email>\r\nReply-To: $AdminEmail\r\n");
}
}
?>
