RE: [PEAR-DEV] correction in Mail/mime.php
| From: | Richard Heyes | Date: | Fri, 14 Sep 2001 09:34:22 +0000 |
| Subject: | RE: [PEAR-DEV] correction in Mail/mime.php | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-1912@lists.php.net to get a copy of this message | ||
> mymail->addHTMLImage('/newsletter/images/prettypicture.gif','i
> mage/gif');
This function should really be changed to accept image data instead of
just a filename. This way if the image doesn't exist on disk, (eg.
sourced from a db) it can still be attached. The same also applies to
addAttachment().
> preg_match("([/]([^/]*)$)",$file_name, $file_name_no_path); //
Added
> by Robin Vervoorn - Auxilium Software Development
Wouldn't basename() be simpler?
There's also some changes I'd like to make to this class, mostly to do
with encoding. I'll post them here later.
--
Richard Heyes