PingTool can send mails if an object does not respond. An OK e-mail can also be sent when the object is accessible again after a failure.
Sending mails with PowerShell
The PingTool scope of delivery includes the PowerShell script SendMail.ps1, which can send emails via a mail server. The script is located in the %localappdata%\PingTool\User directory after the PingTool is started for the first time and can be called with the following command:
PowerShell.exe -File "%PingToolPath%\User\SendMail.ps1" "NOT RESPONDING" "%hostname%" "%ipaddress%" "%tcpport%" "%description%" "%macaddress%" "%vendor%" "%responsetime%" "%state%"
The following lines must be adapted for your environment:
$Username
=
"MyName@MyDomain.com";
$Password
=
"MyPassword";
$MailTo
=
"MyRecipient@MyDomain.com";
$MailServer
=
"Mailserver.MyDomain.com";
The script can be modified according to your needs - for example, so that you do not have to enter the password in plain text.

Continue to >>>
PingTool: TCP Ping
Software: PingTool
Category: : PingTool Help / PingTool Tutorial /
PingTool Manual
Go to Ping Tool homepage