Location: PHPKode > scripts > page per mail > page-per-mail/example.php
<?
require("encap.class.php");
$encap = New encapsulador;

$file = "test.htm";
$str = $encap->montaarquivo($file);//create file


// send by e-mail
mail("hide@address.com","HTML-mail",$str,"Content-type:text/html;\nFrom: hide@address.com\n");


// write de content in other file
$open = fopen("result.htm","w");
fwrite($open, $str);
fclose($open);
?>
Return current item: page per mail