How to Retrieve Technical Annexes and SMTPS Details Using JavaScript in Outlook Add-in ?

Akshay Mirgal 0 Reputation points
2023-07-17T17:21:08.02+00:00

Question:

I am building an Outlook add-in using JavaScript and I need to retrieve technical annexes and SMTPS details. How can I achieve this? Specifically, I am looking for guidance on how to retrieve any SMTPS details associated with a message, as well as any technical annexes that may be attached to the message. I would appreciate any advice, code snippets, or resources that can help me achieve this task. Thank you.

E.g.
X-MS-PublicTrafficType:

X-OriginatorOrg: 

X-MS-Office365-Filtering-Correlation-Id: 

X-MS-Exchange-Organization-SCL: 

X-Microsoft-Antispam: BCL:0;

X-Forefront-Antispam-Report:

X-MS-Exchange-CrossTenant-OriginalArrivalTime: 

X-MS-Exchange-CrossTenant-Network-Message-Id: 

X-MS-Exchange-CrossTenant-Id:

X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp:

X-MS-Exchange-CrossTenant-AuthAs: 

X-MS-Exchange-CrossTenant-AuthSource: 

X-MS-Exchange-CrossTenant-FromEntityHeader: 

X-MS-Exchange-Transport-CrossTenantHeadersStamped: 

X-MS-Exchange-Transport-EndToEndLatency:

X-MS-Exchange-Processed-By-BccFoldering: 

X-Microsoft-Antispam-Mailbox-Delivery:

X-Microsoft-Antispam-Message-Info:

Outlook
Outlook
A family of Microsoft email and calendar products.
4,492 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
13,058 questions
JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
1,043 questions
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
4,266 questions
{count} votes

1 answer

Sort by: Most helpful
  1. SamRamon-6302 81 Reputation points
    2023-07-19T18:01:30.4766667+00:00

    Hi @Akshay Mirgal ,

    Thanks for reaching out. You'll need to use Microsoft Graph or EWS to retrieve headers and other Exchange-related information. For more information, see Microsoft Graph documentation and Call web services from an Outlook add-in.

    Note that you can also get and set custom internet headers on messages using Office.js. To learn more, see Get and set internet headers on a message in an Outlook add-in.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.