$smtpServer = "webmail.domainname.com"
# Send E-Mail
$msg =
new-object Net.Mail.MailMessage
$smtp =
new-object Net.Mail.SmtpClient($smtpServer)
$msg.From
= "yourname.s@domainame.com"
$msg.Subject
= "Warning:
ping failed "
$msg.Body
= "The
Linkwith ip adres $ip does not reply! "
$smtp.Send($msg)
No comments:
Post a Comment