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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Insert a graphic file

Status
Not open for further replies.

Calator

Programmer
Feb 12, 2001
262
AU
I need to insert a graphics file in a certain spot within a message generated by an application and passed to sendmail. I have been trying the following:

1. uuencoding the graphics file at the Unix prompt:
>uuencode graph.tif graph.tif > graph.tif.en

2. generating a file that consists of following sendmail commands:
sendmail user@domain <<?
subject: Test graphic attachment
to: user@domain
from: user@domain
content-type:text/html
<HTML>
<BODY>
<IMG SRC=&quot;graph.tif.en&quot;>
</BODY>
</HTML>
test html/graphic message
?


3. executing above file from the Unix prompt

I do receive the message in Outlook however the graphics file is NOT included/attached (appears as an x-ed icon)

Anyone can tell what do I need to do? Thanks


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top