From 572d6973cfd98144cb720df03e5f00e9b4f57178 Mon Sep 17 00:00:00 2001 From: Koen Zomers Date: Tue, 3 Dec 2024 13:53:47 +0100 Subject: [PATCH] Added deprecation notice on the SharePoint Mail API --- documentation/Send-PnPMail.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/documentation/Send-PnPMail.md b/documentation/Send-PnPMail.md index 86572c09e..a26c8ee32 100644 --- a/documentation/Send-PnPMail.md +++ b/documentation/Send-PnPMail.md @@ -20,7 +20,7 @@ Allows sending an e-mail Send-PnPMail -From -To -Subject -Body [-Cc ] [-Bcc ] [-ReplyTo ] [-Importance ] [-BodyContentType ] [-SaveToSentItems ] [-Connection ] [-Verbose] [-Attachments ] ``` -### Send through Microsoft Graph with attachments from SPO +### Send through Microsoft Graph with attachments from SharePoint Online ```powershell Send-PnPMail -From -To -Subject -Body [-Cc ] [-Bcc ] [-ReplyTo ] [-Importance ] [-BodyContentType ] [-SaveToSentItems ] [-Connection ] [-Verbose] [-Files ] @@ -36,6 +36,8 @@ Send-PnPMail -To -Subject -Body [-Cc ] [- Allows sending an e-mail through SharePoint Online or Microsoft Graph. Sending e-mail through Microsoft Graph requires the **Mail.Send** permission. +In October 2025, [Microsoft will remove the API](https://support.microsoft.com/office/retirement-of-the-sharepoint-sendemail-api-b35bbab1-7d09-455f-8737-c2de63fe0821) which is being used to send e-mail through SharePoint. It is therefore highly recommended to use the Microsoft Graph option listed above instead. + ## EXAMPLES ### EXAMPLE 1 @@ -261,4 +263,4 @@ Accept wildcard characters: False ## RELATED LINKS -[Microsoft 365 Patterns and Practices](https://aka.ms/m365pnp) \ No newline at end of file +[Microsoft 365 Patterns and Practices](https://aka.ms/m365pnp)