Outlook 2002 SP3:Problem with adding attachment to custom contact

B

Bodo

Hello,
I use the following vbScript-code to add an attachment (image type) to a
custom
contact item:

Set myAttachments = Item.Attachments
If myAttachments.count = 0 then
myAttachments.add strPath, olEmbeddeditem , 1, "picture"
end if

I assume that the code above adds the file as an embedded attachment to the
item, not just as a link to the file location.

However, when I open the item, the file is addedd as a link.

When I try to add a file to the contact item from menu Insert...File and
choose attachment in file open dialog the file is acctually add as an
embedded file.

How can I do that programmatically?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top