[thelist] Newsletter help

Maximillian Schwanekamp lists at neptunewebworks.com
Sat Jan 29 11:54:25 CST 2005

Razvan Pop wrote:
>  My problem is: can I trick web based 
> mails to show images, at least background images? Can I make a list to 
> look like that without using images?

I have good success so far using [sparingly] attached images, and 
accessing it in the content HTML using content-id (cid:).  E.g. in the 
multipart MIME mail, the message HTML will have something like:
<img src="cid:5463586ydfkjh405364" id="examplepic" height="200" 
width="200" />
And the attached image will have content-id 5463586ydfkjh405364. Haven't 
tested SquirrelMail, but other webmails I have tested display the images 
this way just fine.

If you're using php, I can swear by phpMailer[0] to make this 
dead-simple.  There are other options as well, or you can roll your own 
following the tutorial on Zend[1] (tutorial a bit old though!).
[0] http://phpmailer.sourceforge.net/
[1] http://www.zend.com/zend/spotlight/sendmimeemailpart1.php


Maximillian Von Schwanekamp

More information about the thelist mailing list