Adding UserProperties to Outlook Mail Result in Attachment not showing in Outlook Express

T

TheanKeong

Hi,
I have written some codes in VB whereby it will add UserProperties into
MailItems the moment it is being opened and set some values into it.

The code example is as below:

Public Function uf_add_properties(arg_mailitem As MailItem) As Long
Dim l_udf As UserProperty

Set l_udf = arg_mailitem.UserProperties.Add("UDF_1", olYesNo)
End Function


Being successful in adding the userproperties to my mailitem ,
then i proceed with testing my code by sending an email with a bmp
attachment to my recipient of Outlook Express. Unfortunately Outlook
Express recipient could not see my attachment at all.

When i remove my code (which resulted in the UserProperties not being
added), the attachments issues does not arise.

Is there any complications with sending attachments to Outlook Express
if we have UserProperties being added into a mail item?

I have being told that Modified Form or One Off Form might have such
symptoms but since i added the UserProperties through runtime, does it
still being considered a One Off Form ?

Thanks
Kwan
 
D

Dmitry Streblechenko

This is because adding a user property forces Outlook to send in the tnef
format (the infamous winmail.dat). When TNEF format is used, attachments are
encoded inside of the TNEF stream, which OE cannot decode.
I don't think there is much you can do.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 

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