General information
Category:
COM/DCOM and OLE Automation
Dear friends,
I use Office Automation for Outlook in a form:
WITH thisform
.Outlook=CREATEOBJECT("OutLook.Application")
.NameSpace=thisform.Outlook.GetNamespace("MAPI")
.Folder=.NameSpace.Folders(1).Display
ENDWITH
I need only to put only one picture into email, without text:
.HtmlBody=< img border="0" src="c:\_3CO0MXORT\Picture.png" >
The picture is in a temporary folder, but the email is sent before the temporary folder is erased.
If I send email without write nothing I get an email without picture and I see the "src" parameter without changes.
If I write something before send email I get an email with the picture and I see the "src" parameter changed like src="cid:250004509@03112011-017A".
I think Outlook merges picture into email when I find src="cid....", but how force it to merge picture even without write nothing?
How to embed images into email body?
Otherwise, I can copy the image on clipboard and paste it into email body (this generates src="cid:250004509@03112011-017A"). So, how to paste graphic clipboard in Outlook automation? Unfortunately _cliptext carry only text.
I read about Code64 encoding but I have not found any documentation in FoxPro.
I would like send emails automatically without manual actions.
Note: I do not want use CDO.
Thank you very much
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only