Attachment labels in Outlook 2003

  • Thread starter Thread starter GrannyM
  • Start date Start date
G

GrannyM

We are currently updating our users from Outlook 2000 to Outlook 2003. We
have a Word macro that creates an email to our clients and adds attachments
using this code line:

SafeItem.Attachments.Add attachFileName$, olByValue, 700, "LiveNotice"

In Outllook 2000 the file attachment was labeled LiveNotice. However, if a
user that has been updated to Outlook 2003 views the very same email, the
attachment is labeled with the actual filename instead of the display name.
Is there something that changed in how attachments are labeled between
Outlook 2000 and Outlook 2003?
 
Yes, that's changed, probably for security purposes so that attachment types
cannot be spoofed.
 
Ok, thanks for replying. So the display paramater just goes completely away
now and the line of code would be:

SafeItem.Attachments.Add attachFileName$, olByValue, 700

I guess the only way around it then would be that they have to change their
naming conventions for their filenames.

Thanks again.
 
Right. IIRC, the display name parameter is relevant only for linked
attachments (Type = olByValue).
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
 
Ok, I thought I had it, but now I'm confused. I was using the olBYValue. My
original command was:

SafeItem.Attachments.Add attachFileName$, olByValue, 700, "LiveNotice"

So if the display name parameter is relevant when you use the olBYValue
type, why isn't this working? Is the syntax incorrect?
 
Sorry for the confusion, I meant to type olByReference -- in other words,
file links, rather than file attachments.
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
 
Back
Top