office js - Set custom header (x-header) on Outlook compose mail with JS addin -
i want set custom header in outlook outgoing mail using outlook js web addin. how can achieve this?
while mark's (@marklafleur) answer correct , indeed office.js api doesn't provide direct functionality manipulate transport layer headers, able achieve this. there 2 options available ...
- office.context.mailbox.makeewsrequestasync() gives ability send ews request exchange server , get/set properties of item, including x-headers (which yet property; refer distinguished property "internetheaders", corresponding id
{00020386-0000-0000-c000-000000000046}
). please see example on github: make exchange web service request outlook - make rest api call resturl appropriate query set/get properties of item. example of such request may find: set custom header outlook/office 365 rest
Comments
Post a Comment