Can i get the list of properties and functions available in Outlook OLE.
Basically, i want to open an image/pdf file directly in the body of the mail from my application which is in powerbuilder.
Outlook
Last Comment
David Lee
8/22/2022 - Mon
David Lee
Hi, staarship.
I'm not sure what you mean by "open" in this context. Can you describe how you want this to work?
staarship
ASKER
I dont want the image to be sent as an attachment.. the image must be displayed within the body of the mail.. From outlook, using HTML --> Insert Picture. The same thing i want to make it happen using OLE functions through VB/Powerbuilder.
staarship
ASKER
all messages in HTML format.. Even i wrote
ole_item.htmlbody = "<html><p>This is a picture.</p> <img src='D:\11.bmp'>"
but when the mail is received.. the image is not displayed since the image is in the D:\ of my machine and not the recipients.. how to embed the image completely in the body of the mail..
First, HTML doesn't support OLE (object linking and embedding). In HTML emails images can be linked or attached. In order to use a link (which makes the images appear in the body of the email) you're going to need to move the images to web server or a file share that everyone who receives the message has access to. You have the img tag syntax right. You just need to change the location of the file and the URL that poits to it.
staarship
ASKER
but while creating a mail using HTML in Outlook there is a option to Insert Picture. For this Insert Picture option is there any way by which i can code the same in my application. To attach a file there is Add function.. To insert picture i didnt get any function..
I already gave an answer. There is no function for inserting a picture in Outlook's object model. Speaking strictly from an Outlook perspective you cannot do what you want to do.
I'm not sure what you mean by "open" in this context. Can you describe how you want this to work?