Skip to main content

I call Outlook to send emails.   I easily attach files to send with the emails.  Now I want to insert image files within the body of the emails. I tried the following, but the file still shows up as an attachment:

MODIFY OUTLOOK-HANDLE, CREATEITEM (olMailItem) GIVING Mail-Handle.
INQUIRE MAIL-HANDLE, @Attachments ATTACHMENTS-HANDLE.

MODIFY ATTACHMENTS-HANDLE, @Add(FILE-PATH, @olEmbeddeditem, INSERT-POSITION, SIMPLE-NAME)

 

Any suggestions would be greatly appreciated.

 

 


#attachments
#Email