Attachment labels in Outlook 2003

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?
 
S

Sue Mosher [MVP-Outlook]

Yes, that's changed, probably for security purposes so that attachment types
cannot be spoofed.
 
G

GrannyM

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.
 
S

Sue Mosher [MVP-Outlook]

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
 
G

GrannyM

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?
 
S

Sue Mosher [MVP-Outlook]

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
 

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