envoi_mail.ps1
$emailFrom = « Progicielinformatique@faiveleytransport.com »
$emailTo = « eric.fougere@faiveleytransport.com »
$subject = « test email 3eme essai »
$body = « This is my automated email,`n This is line number 2 »
$smtpServer = « smtp-relay.ft.grp »
$smtp = new-object Net.Mail.SmtpClient($smtpServer)
$smtp.Send($emailFrom, $emailTo, $subject, $body)