msgraph-sdk-php icon indicating copy to clipboard operation
msgraph-sdk-php copied to clipboard

Cannot get contentType of unique body of a message

Open ConChang opened this issue 6 years ago • 0 comments

This is what Im doing:

$contentType = $mail->getUniqueBody()->getContentType();

It returns an empty object. I used the select query to get the unique body. If I do $mail->uniqueBody() I get the content and the contentType.

If I do $mail->getUniqueBody()->getContent() I get the content. So that is working. I am not able to get the contentType.

I did the same with a normal Body. and I am again not able to get the contentType. It returns an empty object. This is what I'm doing with the normal body: $contentType = $mail->getBody()->getContentType();

AB#7589

ConChang avatar Jul 31 '19 08:07 ConChang