How do I embed an image called e.g. file.jpg in an email?
I first tried the EmbedImages method
ThisSendEmail.EmbedList = ThisSendEmail.EmbedImages('C:\embed.htm',1,'C:\')
Where embed.htm looks like this:
<HTML>
<HEAD>
<TITLE></TITLE>
</HEAD>
<BODY>
<IMG SRC="C:\file.jpg">
</BODY>
</HTML>
I get the compile error No matching prototype available on that line
Since I only need to embed 1 image in the email I then looked at the EmbedList property
The example says:
Example:
In your HTML code you could embed a gif file using the following syntax:
<img src="cid:MyPic.gif"> ! Note the use of the cid:
You would then need to set self.EmbedList = 'c:\SomeDir\MyPic.gif'
So I try
Example:
ThisSendEmail.embedList = 'C:\file.jpg'
what I don't understand is the <img src="cid:MyPic.gif"> ! Note the use of the cid:
section since the setting: self.EmbedList = 'c:\SomeDir\MyPic.gif'
seems to have no relation to that line.
Any help appreciated.