i'm trying to email a php file as the message for an email but i want it to be displayed as if it were viewed by a browser, cuz right now the email contains the srouce code.
mail code:
[PHP]
$filename = "text.php";
$handle = fopen($filename , "r");
$contents = fread($handle, filesize($filen ame));
fclose($handle) ;
print mail($_GET["emailTo"], $_POST["QuoteNum"]." Quote Order", $contents);
[/PHP]
open to all suggestions
mail code:
[PHP]
$filename = "text.php";
$handle = fopen($filename , "r");
$contents = fread($handle, filesize($filen ame));
fclose($handle) ;
print mail($_GET["emailTo"], $_POST["QuoteNum"]." Quote Order", $contents);
[/PHP]
open to all suggestions
Comment