DisplayName for Attachments

  • Thread starter Thread starter BritishJeff
  • Start date Start date
B

BritishJeff

Hello,

I have read that the DisplayName property of attachments in mailitem is
no longer available in Outlook XP+. Is this true, and if so, are there
any workarounds, or are we permanently stuck with attachments only
showing their filenames?

In case anyone is interested, or has a solution, my code looks
something like this:

newMailAttachments.Add Filename, olByValue, 1, "Display Name"

-OR-

newMailItem.Add Filename, olByValue, 1
newMailItem.Attachments.Item(1).DisplayName = "DisplayName"

-OR-

newMailItem.Attachments.Add Filename, olByValue, 1, "Display Name"

Thanks,

Jeff
 
i know it is there, but it doesnt do anything. It neither changes the
dsiplay name of the attachment, nor generates any error. I am using it
in Access/Outlook 2003.
 
Am 14 Dec 2005 14:32:50 -0800 schrieb Jeff:

Not sure, but I think it´s a security feature: By renaming attachments it
would be very easy to hide malicious EXE files behind a *.txt file name.
 
Back
Top