I had send word document file in my mail when i send this document at that time it will generate unknown format like asdfADFDF 0000sadfas15454454
I had use mail function for sending mail .
Here is my code for that please check and let me know .
function sendfile()
{
$id = $_REQUEST['id'];
$s=mysql_query("select * from file_doc where id='".$id."'");
$r= mysql_fetch_array($s);
$r['email']; // user email address
$docfile = "upload/".$r['cv']; // $r['cv'] is docfile
}