how can i put variable in file and then send in email?
i really tryed my why did not work and this is my way:
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers .= "From: ".$from;
$file = fopen("$server_directory/template/send_to_friend.tpl.php", "r");
$body = fread($file, 10000);
mail($to, $subject, $body, $headers);