Image in an e-mail using HTML

06-10-2002, 03:41 PM
This code works:

Content-Type: multipart/mixed; boundary="nqp=nb64=()p1KaLmIg2"
Content-Type: Text/html
Content-Transfer-Encoding: quoted-printable

<!-- Written by GoldMine : Version 5.50.10424 -->
<title>"This is an e-mail!"</title>
<Body text="#000000" link="#0000FF">
<table cols=1>
<tr align="left" valign="top">
<td width=754><font size=2 style="font-family:'Arial';font-size:10pt;">
<b>This email should have an image right here</b><br>
<img src="cid:XXXXX1" alt="[image]"><br>

Content-Type: image/gif; name="wizardanime.gif"
Content-Disposition: attachment; filename="wizardanime.gif"
Content-Transfer-Encoding: base64

I:\My Webs Int-net\images\wizardanime.gif

I would like to do the same thing with a web page - CAN it be done? The reader doesn't seem to understand Content-Type: image/html:


06-10-2002, 04:13 PM
"This code works"? Where does it work? I wouldn't have thought that this would work at all:
Content-Transfer-Encoding: base64

I:\My Webs Int-net\images\wizardanime.gif

Or have you just left out the Base64 encoded data?

If you want to do the same thing with an email.... I can't see any reason why it wouldn't work...

06-10-2002, 04:44 PM
Nope, it works like it is written.

I think I DID leave off the

before </html>

06-10-2002, 05:13 PM
I can only see this working if the image is saved locally. Perhaps this source was extracted after the encoded data had been unencoded and saved to your drive?

AFAIK you can't expect a web browser to read and display emails, although most browsers do have rudimentary understanding of MIME (all the Content-Stuff), but because its not used in HTML, there's no need for it.
Can't you achieve what you want via HTML?

06-12-2002, 05:15 PM

It's text/html, not image/html.

You can not embed images in HTML. When sending HTML in an email you need to put the images some place public and accessible via HTTP, and then link to those images from HTML.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum