问题
I'm trying to send the email as an attachment to a user by creating draft message then attaching the #Microsoft.OutlookServices.ItemAttachment
using /attachments
The Item
parameter sent in /attachments API call is the object received from API call made to get-a-message.
But when the email is received the ItemAttachment
is missing the original email headers and the original email attachment.
The attachment is having only the following headers:
From: --Removed--
To: --Removed--
Subject: --Removed--
Thread-Topic: --Removed--
Thread-Index: --Removed--
Message-ID: --Removed--
Reply-To: --Removed--
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
X-MS-Exchange-Organization-RecordReviewCfmType: 0
Content-Type: multipart/alternative;
boundary="_000_10712912171441552989604058localhost_"
MIME-Version: 1.0
Note: I'm trying to forward the email as an attachment silently/in background.
Is there a way to get Message mime content instead of the json Message body ?
来源:https://stackoverflow.com/questions/55631353/office365-rest-api-message-itemattachment-loosing-headers-attachments-when