This commit is contained in:
2023-07-04 12:59:44 +02:00
parent 2cef42a718
commit 09c2faad93
231 changed files with 261001 additions and 4 deletions

14
Exemples/Envoie-Mail.ps1 Normal file
View File

@ -0,0 +1,14 @@
$Destinataires = "hubert.cornet-ext@saint-maclou.com","thedjinhn@gmail.com"
[string[]]$To = $Destinataires.Split(',')
$From = "POWERSHELL@saint-maclou.com"
$Subject = "Exemple 3"
$BODY = "Some important plain text!"
$SmtpServer = "RELAISSMTP.FR.DGS.GROUP"
$Port = "25"
$Attachments = ""
$Bcc = ""
$Cc = ""
$Encoding = ""
$Priority = "Normal"
Send-MailMessage -To $To -From $From -Subject $Subject -Body $BODY -SmtpServer $SmtpServer -Port $Port -BodyAsHtml -Priority $Priority #-Bcc $Bcc -Cc $Cc -Encoding $Encoding -Attachments $Attachments