Hi, I want to use this script in netwatch - down, but it doesnt work.
My settings:
tool - email:
address: 74.125.39.109
port: 25
from: "xxx@gmail.com"
username: "xxx@gmail.com"
password: "xxx"
this script:
:local recipients { "recipient1@gmail.com", \
"recipient2@gmail.com", \
"recipient3@domain.com" }
:local subject "AP IS DOWN"
:foreach r in=[:toarray $recipients] do={
:put ("Sending email to " . [:tostr $r])
/tool e-mail send tls=yes to=[:tostr $r] subject=[:tostr $subject]
}
Please can you help what is wrong?