breichert1007
04-03-2006, 08:29 PM
I'm trying to send out an e-mail alert to a client when there status is
showing high. I want it to automatically e-mail the client without me
having to physically e-mail them myself. This is the script that I'm
running:
if (var1 == 1) {
setProperty("bill.b1",_visible,true);
setProperty("bill.b2",_visible,false);
setProperty("bill.b3",_visible,false);
bill.bill1=ns;
getURL("mailto:breichert1...@hotmail.com?subject=Alert Status" +
"&body=You are at a high alert status" +body);
}
if (var1 == 2) {
setProperty("bill.b1",_visible,false);
setProperty("bill.b2",_visible,true);
setProperty("bill.b3",_visible,false);
bill.bill1=ns;
}
if (var1 == 3) {
setProperty("bill.b1",_visible,false);
setProperty("bill.b2",_visible,false);
setProperty("bill.b3",_visible,true);
bill.bill1=ns;
}
When I go to my text file and set the value to a one it keeps opening
new messages over and over again. Is there a way to change the script
so it goes and e-mails the client on its own.
showing high. I want it to automatically e-mail the client without me
having to physically e-mail them myself. This is the script that I'm
running:
if (var1 == 1) {
setProperty("bill.b1",_visible,true);
setProperty("bill.b2",_visible,false);
setProperty("bill.b3",_visible,false);
bill.bill1=ns;
getURL("mailto:breichert1...@hotmail.com?subject=Alert Status" +
"&body=You are at a high alert status" +body);
}
if (var1 == 2) {
setProperty("bill.b1",_visible,false);
setProperty("bill.b2",_visible,true);
setProperty("bill.b3",_visible,false);
bill.bill1=ns;
}
if (var1 == 3) {
setProperty("bill.b1",_visible,false);
setProperty("bill.b2",_visible,false);
setProperty("bill.b3",_visible,true);
bill.bill1=ns;
}
When I go to my text file and set the value to a one it keeps opening
new messages over and over again. Is there a way to change the script
so it goes and e-mails the client on its own.