PowerShell: Jaan Igamees, kavalskript: Difference between revisions

From ICO wiki
Jump to navigationJump to search
(Created page with 'Function SendMail(){ $MessageParameters = @{ From = "v.vinogradin@gmail.com" To = "v.vinogradin@gmail.com" Subject = "Ping ei toota! Vaata C:\ping.txt kataloogi" Body = "Vaata fa…')
 
No edit summary
Line 1: Line 1:
<source lang="powershell">
Function SendMail(){
Function SendMail(){
$MessageParameters = @{
$MessageParameters = @{
Line 9: Line 10:
Send-MailMessage @MessageParameters
Send-MailMessage @MessageParameters
}
}
</source>

Revision as of 11:35, 13 May 2011

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
}