$NameFile = \'15_10_2014_.pdf\'; $File = \'./TEMP/15_10_2014_.pdf\'; $to = \'test2@test.com\'; $From = \"test@test.co
You need get content file:
$openfile = fopen($File, "rb"); $data = fread($openfile, filesize( $filename ) ); fclose($openfile); $File = $data;
Enjoy!