Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
12 lines (10 sloc) 417 Bytes
$To = "First Last <first.last@email.com>"
$From = "FromAddress <from.address@email.com>"
$Cc = "First Last <first.last@email.com>"
$Subject = "Outdated Reports on Server"
$body = @"
Detected outdated reports:
\\Server\Folder\ "outdated_reports.txt"
This script originates from \\Server\ScriptsFolder
"@
Send-MailMessage -To $To -From $From -Cc $Cc -Subject $Subject -body $body -SmtpServer "emailserver.domain.com"