I want to email a pdf file as attachment. I read the thread in FAQ.
His code is :
$filename = "myfile.jpg";
$content_type = "image/jpeg";
$fd = fopen($filename, "r");
$data = fread($fd, filesize($filename));
fclose($fd);
While I don't know $content_type of pdf, so I left it empty. Then code doen't work. What should I put it in $content_type?
His code is :
$filename = "myfile.jpg";
$content_type = "image/jpeg";
$fd = fopen($filename, "r");
$data = fread($fd, filesize($filename));
fclose($fd);
While I don't know $content_type of pdf, so I left it empty. Then code doen't work. What should I put it in $content_type?