sendmail problem

From: Date: Thu, 14 Nov 2002 21:01:24 +0000
Subject: sendmail problem
Groups: php.general 
Request: Send a blank email to php-general+get-124494@lists.php.net to get a copy of this message
OK - I got the rasmail codes from Zend.com's code library. it is working perfectly for my application except for one problem. the email I am using to send has a .pdf file attachment. I can open that PDF file up directly from the site after it is created, but I cannot open the file attachment up. it seems the coding is wrong of something like that so that the attachment is getting corrupted. I have emailed the author for assistance, but haven't receive a response. I'm hoping somebody here can assist me. here is the part of code; function Attachment($attachedfile) { if ($attachedfile) { $pf=@fopen($attachedfile,"r") or die($this->ErrorOutput(9)); $bytes=fread($pf,filesize($attachedfile)); $file=chunk_split(base64_encode($bytes)); fclose($pf); }

« previous php.general (#124494) next »