Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
kb_it:powershell_dev [2025/02/03 12:03] befekb_it:powershell_dev [2025/02/20 09:23] (Version actuelle) befe
Ligne 1: Ligne 1:
 ====== PowerShell ====== ====== PowerShell ======
  
-===== En voyer un email =====+===== Envoyer un email =====
  
 <code pwsh> <code pwsh>
-$SMTP_HOST = "smtp1.iut-tlse3.fr"+$SMTP_HOST = "mail.domain.ltd"
 $SMTP_PORT = 25 $SMTP_PORT = 25
 $SMTP_SSL = $False $SMTP_SSL = $False
Ligne 41: Ligne 41:
     Body                       = $Body     Body                       = $Body
     UseSSL                     = $SMTP_SSL     UseSSL                     = $SMTP_SSL
-    #Credential                 = $credential 
-    #Attachment                 = "C:\Test.txt" 
     DeliveryNotificationOption = "OnFailure", "OnSuccess"     DeliveryNotificationOption = "OnFailure", "OnSuccess"
   }   }