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

Embedding graphics in HTML attachments to Outlook

Status
Not open for further replies.

rohbe

IS-IT--Management
Aug 30, 2001
76
0
0
US
I would like to embed a graphic in an HTML file that is sent as an attachment. I send two attachments, the first is an HTML file that contains an IMG statement to bring up a graphic that is sent as the second attachment. The problem is specifying the full path address of the .JPG file that is sent so that the HTML file can find the graphic.

Thanks
Pete
 
I would do this a different way. I would make the link in the html to a server that the graphic is on. like this:

<img src=&quot; width=100 height=120 alt=&quot;&quot;>

this would go into your html file and then there is no need to have the second attachment sent out in the email.

hope this helps !
 
Thanks much for your response. What I want to do is send emails to various companies that have html attachments and these attachments need to display some graphics when opened up. There are not staying in house and I am not sure I have access to a web server to do your suggestion. Am I correct in that your approach doesn't work in this scenario or am I missing something here.

Thanks
Pete
 
You could set MS Word as your Email editor. by doing this you would allow yourself to set graphics within the page itself and the users of email would see the file as a an RTF html or even generic email so long as their default email program allows html, word or even rtf file reading at the time of opening.

By doing the editing of your email this way the file information would automatically send any files as attachments if need be and the script pointing to the img would be preset.

Consider using Outlook with word as primary email editor by doing this: go to Outlook, under Tools, go to Options,
tab Mailformat, select Word as editor, and change your email sending to Rich text Format.

This should do the trick.
Chad L. Miller
SQA Engineer/Test Engineer
SEI/CMM level 3 certified
 
Thanks, Chad -

I don't think I can use Word as an email editor. What I am trying to do is generate a report from Microsoft VFP using data in a database and email it as an attachment. The program generates the HTML just fine but I want to include a company logo in the report. This report is being mailed outside the company so I believe the best way to do this include the logo as a graphic but I don't know how in the HTML code generated can I reference the path to the attachment.

Pete
 
Save the html document in question to a file on your desktop.

Open that file as a text document, with NOTEPAD, and manually enter the <img src=&quot;filename.jpg&quot;> tag wherever you want your company logo to be. Save and cloe.

Open that html file with Internet Explorer. Do an EDIT, SELECT ALL, COPY.

Open Outlook and do a new message. Ensure message format it &quot;HTML.&quot;

Past the clipboard contents into the document.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top