Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HTML images in mail attachment? 1

Status
Not open for further replies.

mrdance

Programmer
Apr 17, 2001
308
SE
Is it possible to attach images to a mail and link to those (instead of using absolute links to a webpage)?

thanks

--- neteject.com - Internet Solutions ---
 
Yes it is. The method of doing so depends on what you have available. You can do this with most e-mail programs and can also do it with various scripting languages like Perl.

 
OK, how can I link to it? (where do I find the image relatively?)

--- neteject.com - Internet Solutions ---
 
You use the images content id (cid). The details and an example can be found in RFC 2111.
Basically, your html to display the image will look like this:
Code:
<a href="cid:picture1" alt="picture1">
Where the attached image has a content-id of 'picture1'.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top