Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ function Set-RsEmailSettings
.PARAMETER SmtpServer
Specify the SMTP Server address.

.PARAMETER SMTPUseSSL
Specify the the use of SSL.

.PARAMETER SenderAddress
Specify sender email address for the email.

Expand Down Expand Up @@ -85,6 +88,10 @@ function Set-RsEmailSettings
[string]
$SmtpServer,

[Parameter(Mandatory = $False)]
[bool]
$SMTPUseSSL = $true,

[Parameter(Mandatory = $True)]
[string]
$SenderAddress,
Expand Down Expand Up @@ -148,7 +155,7 @@ function Set-RsEmailSettings

try
{
$result = $rsWmiObject.SetAuthenticatedEmailConfiguration($true, $SmtpServer, $SenderAddress, $UserName, $Password, $Authentication.Value__, $true)
$result = $rsWmiObject.SetAuthenticatedEmailConfiguration($true, $SmtpServer, $SenderAddress, $UserName, $Password, $Authentication.Value__, $SMTPUseSSL)
}
catch
{
Expand Down