After a long search it works, I can send a HTML mail from PHP with embedded images, but there is a problem: while everything looks okay in Outlook, Outlook Express shows the mail, but in the bottom, it show the images as attachment.
This is the body of my mail:
--c6568b05a282928e900b0cf5e14d0a74
Content-type: text/html; charset=ISO-8859-2
Content-transfer-encoding: 8bit
<body bgcolor="#FFFFFF" text="#000000"><img src="cid:header"><br><br><font face="Tahoma, Verdana" size="2">test</font></body> --c6568b05a282928e900b0cf5e14d0a74
Content-type: image/gif; name=header.gif
Content-transfer-encoding: base64
Content-ID: header
R0lGODlhPQI/AMQAAP//9//378....... (image's base64 stuff follows)
Any ideas what I'm doing wrong? How to really embed images so they won't show as attachment (like sending a normal HTML mail with outlook or something)?
Thanks.