I need to set alert when smtp fails
i used this code :
Below is the code for checking smtp :
if failed port 25
expect "^220.*\r\n"
send "HELO localhost.localdomain\r\n"
expect "^250.*\r\n"
send "QUIT\r\n"
expect "^221.*\r\n"
but its showing syntax error ..
is this code is intended to perform smtp checks and alerting ?
i doubt there is no alerting specifies ..if so please explain
thanks!
Start Free Trial