[ciapug] multipart emails with images
David Champion
ciapug@cialug.org
Thu, 19 Jun 2003 15:43:27 -0500
Have any of you done a PHP mailer that does multipart mime text / html
messages, with image attachments? (That's a mouthful).
I have one working, using bits & pieces of examples from the php mail
manual page : http://us4.php.net/manual/en/ref.mail.php ... but I don't
have the images working quite right yet.
I have a plain text portion, the html message portion, and the image
attachments. But the <img src=... tags don't work. From what I can
gather, you're supposed to say <img src="cid:myimage.gif"> where
myimage.gif is the name of the attached image. But that's not working
for me.
I'm wondering if the images have to be attached with a special mime type
in order to get them to work this way.
I'm getting around this with a kludge of putting the images on a web
server, then using the absolute URL path in the img tags.
Any ideas on this?
-dc