c# - Outlook Addin - ItemProperties.Add change the mail format -
i trying add item property follow:
microsoft.office.interop.outlook.itemproperty property = currentmail.itemproperties.add("iscopy", microsoft.office.interop.outlook.oluserpropertytype.olyesno); property.value = false;
the issue is changing email format.
before adding property email sent follow:
after adding property email sent follow:
furthermore, have tried userproperties.add. behavior same.
adding user property causes outlook send message in tnef (rtf) format (the infamous winmail.dat).
you can either set property dasl name using mailitem.propertyaccessor.setproperty (jnstead of using userproperties.add) or set special usetnef named property false using mailitem.propertyaccessor.setproperty("mailitem.propertyaccessor.setproperty", false)
before caling send.
Comments
Post a Comment