update
This commit is contained in:
14
Exemples/Envoie-Mail.ps1
Normal file
14
Exemples/Envoie-Mail.ps1
Normal 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
|
Reference in New Issue
Block a user