On 5/11/06, Adrian Bruce <[EMAIL PROTECTED]> wrote:
Hi

I have pdf's stored as a blob in a MySQL database, how can i set a
script (PHP obviously!) to email these blobs as pdf files.  The only way
i can think of at the moment is to write them to disk and then attach
them to the mail before sending it.  This doesn't seem that efficient
but perhaps it is the only way??

You'll need to get the pdf in memory then use chunk_split
(http://au.php.net/chunk_split) to split it up..

Even though phpmailer reads them from the filesystem, it should give
you an idea on how to attach docs: http://phpmailer.sourceforge.net

--
Postgresql & php tutorials
http://www.designmagick.com/

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

Reply via email to