Files

15 lines
1.3 KiB
PowerShell

$smtp = new-object Net.Mail.SmtpClient("192.168.100.53")
$objMailMessage = New-Object System.Net.Mail.MailMessage
$objMailMessage.From = "Jomar_Test_Server@sunburytextile.com"
$objMailMessage.Bcc.Add("WRay@sunburytextile.com")
$objMailMessage.Bcc.Add("ELebo@sunburytextile.com")
$objMailMessage.Bcc.Add("NWaltz@sunburytextile.com")
$objMailMessage.Bcc.Add("CFetterman@sunburytextile.com")
$objMailMessage.Bcc.Add("AFetterman@sunburytextile.com")
$objMailMessage.Subject = "Test Server Online!"
$objMailMessage.Body = "You're probably receiving this message because someone rebooted the Jomar server."
$smtp.send($objMailMessage)