Forum Moderators: open

Message Too Old, No Replies

Embedding images into an email

         

mattglet

3:23 pm on May 5, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I have a snippet of code:

<META content="MSHTML 6.00.2800.1400" name=GENERATOR></HEAD>
<BODY>
<DIV><IMG src="cid:443351216@04052004-0DC8"></DIV>

This was sent to me in an email via Outlook from a co-worker. It seems he was able to embed the image into the email. I assume (I have not asked him) that he just dragged/dropped the image into the email. Is it possible to do this from code? I am looking for an alternative to making the image reference an actual server (i.e. <img src = "http://www.example.com/sample.gif">).

The file size of the email sent to me was 54k, showing the the image was actually a part of the email. I know this is something that I have to deal with if I choose to embed, but it would only be one small image per email.

Can anyone shed some light?

-Matt

DrDoc

3:31 pm on May 5, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The method is called "inline attachment". There are several ways of accomplishing this, depending on what you use to send the e-mail, and your server side scripting language. A Google search [google.com] should probably shed some light on the issue :)