Thank you Sue
I have read your codes. That implies that the user would have to compose
the email in outlook with the embedded images, save to HTML and then, when
they send using my application, they would have to enter the file names again.
Is there a way to force Outlook to save the HTML with the file pathname
rather than the reference that it shows now?
regards
george
"Sue Mosher [MVP-Outlook]" wrote:
Embedded graphics take a bit more effort, with CDO or Redemption. See http://www.outlookcode.com/d/code/htmlimg.htm
--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx
"GeorgeMar" wrote in message ...
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?