On Tue, 20 Aug 2002 14:52:21 +0300, you wrote:

>Hi,
>
>Does anyone know how to embed images in HTML emails in order to avoid a
>server request (no <img src="http://server/foo.img";>)?
>Is this possible?

It is possible.  If you are sending a multipart MIME message, attach
the image as MIME type image/gif or image/jpeg with a particular name,
and then inside your HTML attachment reference the image like so:

<img src="cid:myimage.gif";>

I'm personally using a Perl module, MIME::Lite, as the basis for the
above.  There may be other ways to implement it.  I imagine that
Manuel Lemos' PHP Classes site has a class that would take care of
this for you...

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

Reply via email to