Skip to content

Commit 572d697

Browse files
authored
Added deprecation notice on the SharePoint Mail API
1 parent ad70758 commit 572d697

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

documentation/Send-PnPMail.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Allows sending an e-mail
2020
Send-PnPMail -From <String> -To <String[]> -Subject <String> -Body <String> [-Cc <String[]>] [-Bcc <String[]>] [-ReplyTo <String[]>] [-Importance <MessageImportanceType>] [-BodyContentType <MessageBodyContentType>] [-SaveToSentItems <bool>] [-Connection <PnPConnection>] [-Verbose] [-Attachments <String[]>]
2121
```
2222

23-
### Send through Microsoft Graph with attachments from SPO
23+
### Send through Microsoft Graph with attachments from SharePoint Online
2424

2525
```powershell
2626
Send-PnPMail -From <String> -To <String[]> -Subject <String> -Body <String> [-Cc <String[]>] [-Bcc <String[]>] [-ReplyTo <String[]>] [-Importance <MessageImportanceType>] [-BodyContentType <MessageBodyContentType>] [-SaveToSentItems <bool>] [-Connection <PnPConnection>] [-Verbose] [-Files <String[]>]
@@ -36,6 +36,8 @@ Send-PnPMail -To <String[]> -Subject <String> -Body <String> [-Cc <String[]>] [-
3636

3737
Allows sending an e-mail through SharePoint Online or Microsoft Graph. Sending e-mail through Microsoft Graph requires the **Mail.Send** permission.
3838

39+
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.
40+
3941
## EXAMPLES
4042

4143
### EXAMPLE 1
@@ -261,4 +263,4 @@ Accept wildcard characters: False
261263
262264
## RELATED LINKS
263265
264-
[Microsoft 365 Patterns and Practices](https://aka.ms/m365pnp)
266+
[Microsoft 365 Patterns and Practices](https://aka.ms/m365pnp)

0 commit comments

Comments
 (0)