Re: Embedded Image from Database
| From: | Richard Lynch | Date: | Thu, 24 May 2007 23:11:31 +0000 |
| Subject: | Re: Embedded Image from Database | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-255596@lists.php.net to get a copy of this message | ||
On Wed, May 23, 2007 9:09 am, Bagus Nugroho wrote:
> I was trying to put embedded image on HTML Mail using PHP Mailer, my
> problem is my image does not located on filesystem but located within
> MySQL Server.
>
> How I can put image from database into HTML Mail.
Well, it's got to get attacehd to the email and assigned a cid: just
like any embedded image in HTML Enhanced (cough cough) email...
Where's the problem?...
I have no idea how PHP Mailer works, but it shouldn't be TOO hard to
track down where it adds in the file and gives it a cid: and hack that
to use MySQL instead of file-system.
Or, if it is, toss the file into a temporary location out of mysql and
then erase it after the email is composed and sent.
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?