G
GeorgeMar
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">
<HTML><HEAD>
<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>
<DIV><FONT face=Arial size=2>dear zzz</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><IMG alt="" hspace=0
src="cid:[email protected]" align=baseline
border=0></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>thanks</FONT></DIV></BODY></HTML>
I Import these lines into my application's HTMLBody. The gif file is shown
as
src="cid:[email protected]"
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?
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">
<HTML><HEAD>
<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>
<DIV><FONT face=Arial size=2>dear zzz</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><IMG alt="" hspace=0
src="cid:[email protected]" align=baseline
border=0></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>thanks</FONT></DIV></BODY></HTML>
I Import these lines into my application's HTMLBody. The gif file is shown
as
src="cid:[email protected]"
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?