Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Picture into Email
Message
From
05/11/2011 07:07:56
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Picture into Email
Miscellaneous
Thread ID:
01528146
Message ID:
01528146
Views:
91
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
Map
View

Click here to load this message in the networking platform