msgraph-sdk-php
msgraph-sdk-php copied to clipboard
Cannot get contentType of unique body of a message
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();