Hmm. Never tried the cid: syntax but it looks as if that will require a multi-part message and the image data still has to be base-64 encoded and sent as a separate section.
There's an example in the answer here :
http://stackoverflow.com/questions/4312687/how-to-embed-images-in-email.
No idea how you would construct such an email in VFP tho :-{
Also saw an example in .NET which includes the image as an attachment and references that.
http://stackoverflow.com/questions/7048758/how-to-embed-multiple-images-in-email-body-using-net (last answer)
>Hi Viv. Thanks for replying.
>Your solution I think requires a conversion of the image to Base64 in advance.
>I gather that there is a different way of doing this (but without having a link and using cid ??)
>
>Regards,
>Gerard
>
>
>>>Hi.
>>>I am trying to embed an image (dont want the image linked to a server) in the body of an email
>>>I create the HTML page with the various tags but cannot get the Image to imbed
>>>I know I have to use img src="cid:MyFilename" but not sure if this is ALL thats required or do I need additional code to attach the image also?
>>>Also , do I need to point to the absolute file reference in MyFileName or is this done somewhere else ?
>>>
>>>Lots of sample using PHP out there , but has anybody had a sample of HTML code that embeds a file
>>>(The embedded file will either be a signature or a company logo that is appers near or at the end of the email text)
>>
>>I thought you have to include base64 data for the image? Something like:
<img src="data:image/png;base64,/VHb/5RGQ0 Q0PzM....hoxtb0QGhoQ2HwRQ
>> AAAAAElFTkSuQmCC" />
>>
>>But quite a few email clients will refuse to display it anyway :-{
>>
>>>Tia
>>>Gerard