Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get-MgUserMessage unable to retrieve email body #2404

Closed
insomniacc opened this issue Nov 4, 2023 · 1 comment
Closed

Get-MgUserMessage unable to retrieve email body #2404

insomniacc opened this issue Nov 4, 2023 · 1 comment

Comments

@insomniacc
Copy link

insomniacc commented Nov 4, 2023

As per documentation and examples here:
https://learn.microsoft.com/en-us/powershell/module/microsoft.graph.mail/get-mgusermessage?view=graph-powershell-1.0#example-3-get-message-body-in-text-format

I am able to get the message, but the returned object does not provide the body.

This is what is returned:

Body                          : Microsoft.Graph.PowerShell.Models.MicrosoftGraphItemBody

When expanding this, the content is empty:

Content ContentType
------- -----------
        text

If I look under Unique Body I see:

Content                    ContentType
-------                    -----------
<html><body></body></html> html

but this does not reflect the actual html content of the email in question, which has a html head tag, along with content inside the body tags.

@insomniacc insomniacc closed this as not planned Won't fix, can't repro, duplicate, stale Nov 4, 2023
@insomniacc
Copy link
Author

Closed this - I beleive I'm probably doing something wrong. will reopen if not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant