Re: Embeding images in HTML emails

From: Date: Tue, 20 Aug 2002 12:35:36 +0000
Subject: Re: Embeding images in HTML emails
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-113316@lists.php.net to get a copy of this message
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...

« previous php.general (#113316) next »