var client = new GraphServiceClient(credential, scopes);
await client.Me.SendMail.PostAsync(new SendMailPostRequestBody { Message = message });
It has started showing deprecation warnings:
'MeRequestBuilder.SendMail' is obsolete: ' as of 2024-07/PrivatePreview:copilotExportAPI'
'SendMailRequestBuilder.PostAsync(SendMailPostRequestBody, Action<RequestConfiguration>?, CancellationToken)' is obsolete: ' as of 2024-07/PrivatePreview:copilotExportAPI'
I am using the Microsoft Graph Beta SDK for .NET. However, this issue seems to be caused by commit https://github.com/microsoftgraph/msgraph-beta-sdk-dotnet/commit/7c5cfba8e32d7e89ccdc507192ab5eb01c96e313 which was generated from the metadata.
This code should send an email:
It has started showing deprecation warnings:
This appears to come from the metadata:
However, I cannot see this deprecation listed in the Microsoft Graph changelog.