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:

formatted enter image description here

after adding property email sent follow:

no formatted , attached file enter image description here

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

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -