OfficeDev / Office-365-SDK-for-Android

Microsoft Services SDKs for Android produced by MS Open Tech.
https://dev.office.com/android
Other
224 stars 74 forks source link

How do I send Email with inline Attachments #56

Open AppyPt opened 9 years ago

AppyPt commented 9 years ago

I send the description my team is having with the json integration with Office API 365.

We want to send an email with inline attachments through the JSON API.

With that objective, what we are doing:

Create an empty draft message using reply operation; Send the several inline attachments; Update the body of the draft message (with cid images inline); Send the message; What is our issue with the API?

We are unable to set the "ContentType" properties when we submit the attachments to the Office API 365. Despite the "ContentType" we send, it is always null.

We are using the following API: POST https://outlook.office365.com/api/v1.0/me/messages/{message_id}/attachments

That's the reason we think that despite the inline image then it is found in the body, it cannot be displayed because the contenttype it is not set correctly.

Please give us some direction.

marcote commented 9 years ago

@AppyPt I will redirect this inquiry to the API owners. Meanwhile can you confirm this is an issue related with the REST API itself and not with the Android SDK ? Thanks.

AppyPt commented 9 years ago

Yes. This is not related with Android SDK. That's a json api generic issue.

marcote commented 9 years ago

Understood. I will keep you posted as soon as we get a response.

AppyPt commented 9 years ago

Marco, any news on this?

marcote commented 9 years ago

No, sorry. I will ask what again what's the status of your query.