Re: sendmail problem
| From: | Jeff Bluemel | Date: | Sat, 16 Nov 2002 18:53:58 +0000 |
| Subject: | Re: sendmail problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-124738@lists.php.net to get a copy of this message | ||
anybody??? still haven't gotten this figure out.
Jeff
"Jeff Bluemel" <jeff@domintcom.com> wrote in message
news:20021114205959.77989.qmail@pb1.pair.com...
> 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);
> }
>
>