PowerShell: Jaan Igamees, kavalskript
From ICO wiki
Function SendMail(){
$MessageParameters = @{
From = "v.vinogradin@gmail.com"
To = "v.vinogradin@gmail.com"
Subject = "Ping ei toota! Vaata C:\ping.txt kataloogi"
Body = "Vaata faili"
SmtpServer = "mail.neti.ee"
}
Send-MailMessage @MessageParameters
}