You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -38,7 +38,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
38
38
39
39
### Changed
40
40
41
-
-**PnP PowerShell is now .NET 8.0 based, and requires PowerShell 7.4.3 or newer **
41
+
-**PnP PowerShell is now .NET 8.0 based, and requires PowerShell 7.4.4 or newer **
42
42
-**`-Interactive` login is now the default.**
43
43
- In case of errors when Graph batch method is used, it will now throw a clearer error message about what was the issue. [#4327](https://github.com/pnp/powershell/pull/4327/)
44
44
-`Get-PnPAccessToken`, `Request-PnPAccessToken` and `Get-PnPGraphAccessToken` output type is changed to `Microsoft.IdentityModel.JsonWebTokens.JsonWebToken`. Earlier they returned `System.IdentityModel.Tokens.Jwt`.
@@ -55,6 +55,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
55
55
- When passing in an existing connection using `-Connection` on `Connect-PnPOnline`, the clientid from the passed in connection will be used for the new connection [#4425](https://github.com/pnp/powershell/pull/4425)
56
56
- Removed `-Confirm` parameter from `Remove-PnPUser` and `Remove-PnPAvailableSiteClassification` cmdlets. Use `-Force` instead. [#4455](https://github.com/pnp/powershell/pull/4455)
57
57
-`Get-PnPFile` now also supports passing in a full SharePoint Online URL [#4480](https://github.com/pnp/powershell/pull/4480)
58
+
-`Send-PnPMail` now throws a warning about the retirement of the SharePoint SendEmail API.
58
59
59
60
### Fixed
60
61
@@ -81,6 +82,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
81
82
- Removed `Get-PnPPowerPlatformConnector` alias. You need to use `Get-PnPPowerPlatformCustomConnector`. [#4387](https://github.com/pnp/powershell/pull/4387)
82
83
- Removed `-IsFavoriteByDefault` parameter from `Add-PnPTeamsChannel` cmdlet. It was obsolete and not supported by Graph API. [#4387](https://github.com/pnp/powershell/pull/4387)
83
84
- Removed `Get-PnPAppAuthAccessToken` , `Remove-PnPGraphAccessToken` and `Request-PnPAccessToken` cmdlets. Use `Get-PnPAccessToken` instead. [#4398](https://github.com/pnp/powershell/pull/4398)
85
+
- Removed support for sending mail via SMTP. It's usage is not recommended by .NET due to its lack of support for modern protocols.
Copy file name to clipboardExpand all lines: MIGRATE-2.0-to-3.0.md
+6-3Lines changed: 6 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
_This is a draft document, version 3 is not yet available. You can try this out with the nightly builds starting from 2.99.1 or later_
4
4
5
-
The 3.x version of PnP PowerShell is based exclusively on .NET 8.0, which means that it will not work on older PowerShell editions like PowerShell 5.1, ISE or PowerShell 7.3 or older. It will work only on **PowerShell 7.4 or later editions.**
5
+
The 3.x version of PnP PowerShell is based exclusively on .NET 8.0, which means that it will not work on older PowerShell editions like PowerShell 5.1, ISE or PowerShell 7.3 or older. It will work only on **PowerShell 7.4.4 or later editions.**
6
6
7
7
## Steps to update from 2.x to 3.x
8
8
@@ -16,7 +16,7 @@ Or
16
16
17
17
- For Mac OS environments, please use [this link](https://learn.microsoft.com/en-us/powershell/scripting/install/installing-powershell-on-macos)
18
18
19
-
Once the PowerShell 7.4 or later is downloaded and installed in the environment, you can install the PnP PowerShell module like you normally do.
19
+
Once the PowerShell 7.4.4 or later is downloaded and installed in the environment, you can install the PnP PowerShell module like you normally do.
## Changes needed in Azure DevOps/GitHub Actions/Pipelines
32
32
33
-
If you are using PnP PowerShell in Azure Devops, GitHub Actions or other pipeline infrastructure, you will have to update your PowerShell version from v5 to v7.4 or later.
33
+
If you are using PnP PowerShell in Azure Devops, GitHub Actions or other pipeline infrastructure, you will have to update your PowerShell version from v5 to v7.4.4 or later.
34
34
35
35
Recommend referring to these 2 links:
36
36
@@ -54,6 +54,9 @@ Recommend referring to these 2 links:
54
54
| Get-PnPGraphAccessToken | It has been removed. Use `Get-PnPAccessToken` instead. |
55
55
| Remove-PnPUser | The parameter `-Confirm` has been removed. Use `-Force` instead. |
56
56
| Remove-PnPAvailableSiteClassification | The parameter `-Confirm` has been removed. Use `-Force` instead. |
57
+
| Send-PnPMail | It now throws a warning about the retirement of SharePoint SendEmail API, if you are sending mails via SharePoint. To ignore it, use `-ErrorAction SilentlyContinue` along side the cmdlet. |
58
+
| Send-PnPMail | The support for sending mails via SMTP servers is now removed. It is the recommendation of .NET as SMTP doesn't support modern protocols. So, the parameters `-EnableSSL` , `-UserName`, `-Password`, `-Server ` and `-ServerPort` are now removed. Use `Send-PnPMail` with [Microsoft Graph](https://pnp.github.io/powershell/cmdlets/Send-PnPMail.html#send-through-microsoft-graph)|
Sends an e-mail using the SharePoint Online SendEmail method using the current context. E-mail is sent from the SharePoint Online no-reply e-mail address and can only be sent to accounts in the same tenant. The from address will show the title of the site you are connected with along with the e-mail address no-reply@sharepointonline.com.
61
55
62
-
### EXAMPLE 4
63
-
```powershell
64
-
Send-PnPMail -From "user@contoso.onmicrosoft.com" -To "recipient@contoso.onmicrosoft.com" -Subject "Test message" -Body "This is a test message" -Server contoso.mail.protection.outlook.com
65
-
```
66
-
67
-
Sends an e-mail via the SMTP service belonging to a specific tenant. E-mail is sent from the user specified in the From parameter and can be sent only to addresses residing in the tenant you address through the Server parameter, in this case contoso.
68
-
69
-
### EXAMPLE 5
70
-
```powershell
71
-
Send-PnPMail -From "user@contoso.onmicrosoft.com" -To "recipient@contoso.com" -Subject "Test message" -Body "This is a test message" -Server smtp.myisp.com
72
-
```
73
-
74
-
Sends an e-mail via a custom SMTP server of your Internet Service Provider which does not require authentication and uses port TCP 25. E-mail is sent from the user specified in the From parameter and can be sent to both internal and external addresses.
75
-
76
-
### EXAMPLE 6
77
-
```powershell
78
-
Send-PnPMail -From "user@contoso.onmicrosoft.com" -To "recipient@contoso.com" -Subject "Test message" -Body "This is a test message" -Server smtp.myisp.com -Port 587 -EnableSsl:$true -Username "userxyz" -Password "password123"
79
-
```
80
-
81
-
Sends an e-mail via a custom SMTP server of your Internet Service Provider which requires authentication and uses SSL over port TCP 587. E-mail is sent from the user specified in the From parameter and can be sent to both internal and external addresses.
82
-
83
56
## PARAMETERS
84
57
85
58
### -Body
@@ -129,7 +102,7 @@ Allows defining what type of content is in the Body parameter. Defaults to HTML.
129
102
130
103
```yaml
131
104
Type: MessageBodyContentType
132
-
Parameter Sets: Send through Microsoft Graph, Send through SMTP
Allows you to specify if SSL should be used when connecting to the SMTP server. Only used when the Server parameter is specified.
158
-
159
-
```yaml
160
-
Type: Boolean
161
-
Parameter Sets: Send through SMTP
162
-
163
-
Required: False
164
-
Position: Named
165
-
Default value: False
166
-
Accept pipeline input: False
167
-
Accept wildcard characters: False
168
-
```
169
-
170
129
### -From
171
130
The sender of the e-mail. When Microsoft Graph is used, this can be a user or a shared mailbox.
172
131
173
132
```yaml
174
133
Type: String
175
-
Parameter Sets: Send through SMTP, Send through Microsoft Graph
134
+
Parameter Sets: Send through Microsoft Graph
176
135
177
136
Required: True
178
137
Position: Named
@@ -186,7 +145,7 @@ Allows defining what the importance of the e-mail is. Defaults to Normal.
186
145
187
146
```yaml
188
147
Type: MessageImportanceType
189
-
Parameter Sets: Send through Microsoft Graph, Send through SMTP
148
+
Parameter Sets: Send through Microsoft Graph
190
149
Accepted values: Low, Normal, High
191
150
192
151
Required: False
@@ -196,34 +155,6 @@ Accept pipeline input: False
196
155
Accept wildcard characters: False
197
156
```
198
157
199
-
### -Username
200
-
Username to use to authenticate to the outbound mailserver. Only used when the Server parameter is specified and if not provided, an anonymous connection will be made with the SMTP server specified through Server.
201
-
202
-
```yaml
203
-
Type: String
204
-
Parameter Sets: Send through SMTP
205
-
206
-
Required: False
207
-
Position: Named
208
-
Default value: None
209
-
Accept pipeline input: False
210
-
Accept wildcard characters: False
211
-
```
212
-
213
-
### -Password
214
-
Password to use to authenticate to the outbound mailserver. Only used when the Server parameter is specified and if not provided, an anonymous connection will be made with the SMTP server specified through Server.
215
-
216
-
```yaml
217
-
Type: String
218
-
Parameter Sets: Send through SMTP
219
-
220
-
Required: False
221
-
Position: Named
222
-
Default value: None
223
-
Accept pipeline input: False
224
-
Accept wildcard characters: False
225
-
```
226
-
227
158
### -ReplyTo
228
159
List of return addresses to use for the e-mail
229
160
@@ -252,34 +183,6 @@ Accept pipeline input: False
252
183
Accept wildcard characters: False
253
184
```
254
185
255
-
### -Server
256
-
SMTP server to use to send the e-mail. You can use the SMTP server of your Internet Service Provider or the SMTP server of your tenant by using tenant.mail.protection.outlook.com where you replace tenant with your own tenant name. This allows you to send e-mail without requiring any authentication, but only to recipients in that tenant. Use a custom SMTP server if you want to send e-mail to various external recipients or go for the Microsoft Graph option in which case you don't specify a server.
257
-
258
-
```yaml
259
-
Type: String
260
-
Parameter Sets: Send through SMTP
261
-
262
-
Required: True
263
-
Position: Named
264
-
Default value: None
265
-
Accept pipeline input: False
266
-
Accept wildcard characters: False
267
-
```
268
-
269
-
### -ServerPort
270
-
SMTP server port to use to send the e-mail. Used in combination with the Server parameter. Defaults to 25.
Copy file name to clipboardExpand all lines: pages/articles/installation.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Installing PnP PowerShell
2
2
3
-
You need PowerShell 7.4 or later to use PnP PowerShell. It is available for Windows, Linux and Mac and can be [installed through here](https://learn.microsoft.com/powershell/scripting/install/installing-powershell).
3
+
You need PowerShell 7.4.4 or later to use PnP PowerShell. It is available for Windows, Linux and Mac and can be [installed through here](https://learn.microsoft.com/powershell/scripting/install/installing-powershell).
4
4
5
5
## Stable build
6
6
@@ -34,7 +34,7 @@ docker run -it m365pnp/powershell
34
34
35
35
# Updating PnP PowerShell
36
36
37
-
If you already have PnP PowerShell installed and just want to update to the latest version you can follow these steps. If you're not sure if your version is already up to date, it does no harm to run it anyway. If there's no new version available, it will not do anything. You need PowerShell 7.4 or later to use PnP PowerShell. It is available for Windows, Linux and Mac and can be [installed through here](https://learn.microsoft.com/powershell/scripting/install/installing-powershell).
37
+
If you already have PnP PowerShell installed and just want to update to the latest version you can follow these steps. If you're not sure if your version is already up to date, it does no harm to run it anyway. If there's no new version available, it will not do anything. You need PowerShell 7.4.4 or later to use PnP PowerShell. It is available for Windows, Linux and Mac and can be [installed through here](https://learn.microsoft.com/powershell/scripting/install/installing-powershell).
0 commit comments