From d931c853259053e22eecabb0ff243a2087337fcc Mon Sep 17 00:00:00 2001 From: adminbruno Date: Thu, 16 Nov 2023 11:38:43 -0500 Subject: [PATCH] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'multi-mail.ps1'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ajouter option SSL --- multi-mail.ps1 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/multi-mail.ps1 b/multi-mail.ps1 index 7970321..109d1e9 100644 --- a/multi-mail.ps1 +++ b/multi-mail.ps1 @@ -9,6 +9,8 @@ $Body = "Test Body" $SMTPServer = "192.168.1.4" $SMTPClient = New-Object Net.Mail.SmtpClient($SmtpServer, 587) +#Pour SSL ou STARTTLS +$SMTPClient.EnableSsl = 1 $SMTPClient.Credentials = New-Object System.Net.NetworkCredential("user", "pass") $SMTPMessage = New-Object System.Net.Mail.MailMessage