I am trying to send large .htm file(with image) (50kš to somebodyby using a PHP script. My script works fine for the 2kB files, but when I select the >2kB .htm file ,the script appears to run for a minute then either returns a internal sever error or can not find the sever and do not appears the page. I am currently using PHP 3.0.16 for win32. My code for copying the file is as follows:
$userfile="*.HTM";
$content=implode("",file($userfile));
$mime = new MIME_mail("www.TONGHUA.com.CN",WKH6@ELONG.COM,"WEEKLY");
$mime->attach($content, "", html,BASE64,INLINE);
$mime->send_mail();