embedded graphics in HTML
I am trying to send an email created in outlook and saved as a HTML, using
VBA. The email has a gif file embedded. Using .HTMLBody I can send the
email if I write the pathname of the gif file but if I accept the default
name given by Outlook it doesn't work.
For example here is the HTML output from Outlook of a test email:
META HTTP-EQUIV="Content-Type" CONTENT="text/html;charset=iso-8859-1"
!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
HTMLHEAD
META http-equiv=Content-Type content="text/html; charset=iso-8859-1"
META content="MSHTML 6.00.2800.1106" name=GENERATOR
STYLE/STYLE
/HEAD
BODY bgColor=#ffffff
DIVFONT face=Arial size=2dear zzz/FONT/DIV
DIVFONT face=Arial size=2/FONT /DIV
DIVFONT face=Arial size=2IMG alt="" hspace=0
d.net.au" align=baseline
border=0/FONT/DIV
DIVFONT face=Arial size=2/FONT /DIV
DIVFONT face=Arial size=2thanks/FONT/DIV/BODY/HTML
I Import these lines into my application's HTMLBody. The gif file is shown
as
d.net.au"
If I send this, I get the icon for an unreconised graphics.
If I replace the above line with: src="c:\filename.gif" it works.
Is there a way that I can get the HTML output, listed above, to work without
having to change the src to hardcoded filename?
|