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);
  }



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to