-
Notifications
You must be signed in to change notification settings - Fork 221
Closed
Description
The command results in the following error, but the email is sent.
Send-MgUserMail_Send: The server responded with an unrecognized response, Status: AcceptedA 202 Accepted is the expected response for the send mail API.
Version: 2.0.0-preview5
To reproduce:
Connect-MgGraph -Scopes "Mail.Send" -UseDeviceAuthentication
$context = Get-MgContext
$sendMailParams = @{
Message = @{
Subject = "Testing Microsoft Graph"
Body = @{
ContentType = "text"
Content = "Hello world!"
}
ToRecipients = @(
@{
EmailAddress = @{
Address = $context.Account
}
}
)
}
}
Send-MgUserMail -UserId $context.Account -BodyParameter $sendMailParamsReactions are currently unavailable