Image in an e-mail using HTML

TheWizardofInt
06-10-2002, 02:41 PM
This code works:




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

<html>
<head>
<!-- Written by GoldMine : Version 5.50.10424 -->
<title>"This is an e-mail!"</title>
</head>
<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;">
<br>
<b>This email should have an image right here</b><br>
<img src="cid:XXXXX1" alt="[image]"><br>

</html>
--nqp=nb64=()p1KaLmIg2
Content-Type: image/gif; name="wizardanime.gif"
Content-ID:<XXXXX1>
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:

Thanks!

ChiefRedBull
06-10-2002, 03: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...

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

I think I DID leave off the
</td>
</tr>
</table>

before </html>

ChiefRedBull
06-10-2002, 04: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?

andersb
06-12-2002, 04:15 PM
TheWizardofInt,

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