Results 1 to 8 of 8

Thread: email issues

  1. #1
    Join Date
    Apr 2006
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default email issues

    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.

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    What language is this?
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  3. #3
    Join Date
    Mar 2006
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    looks like c or C++ o_O

  4. #4
    Join Date
    Apr 2006
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    its flash actionscript

  5. #5
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    I see. Well, there's no reason for your script to get stuck in a loop there; in fact, there aren't even any loops for it to get stuck in. If you post the rest of the code, I'll see if I can sort it. However, the best way to do this sort of thing will always be server-side.
    looks like c or C++ o_O
    Unfortunately, so do most modern languages. Unless you know the language well enough to spot distinguishing marks, it's almost impossible to tell them apart. For example, the above script could quite easily be Javascript, Java, C, C++, or, apparently, Flash ActionScript. The only thing that could have given it away, if I'd known ActionScript, would have been the predefined functions used. However, if those functions were defined elsewhere, that's a perfectly valid example of any of the languages listed above, and probably quite a few more that I don't know or didn't think of.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  6. #6
    Join Date
    Apr 2006
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    var1=1&var2=2&var3=3&ns=Medium&br=123
    This is the txt file that I'm loading from: loadVariablesNum("alert.txt",0).
    Whats happening is when I put a 1 in the txt box it just keep opening an e-mail message over and over again. Do I need to put another if statement in there somewhere and then use a ASP page to run it?

  7. #7
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    I see no reason why that shouldn't work. Yes, ASP (or rather, another server-side language) is the best way of sending an email. You can do the whole thing in ASP, there is no need to use ActionScript. However, I don't know ASP, so I can't help you with writing the script. There are quite a few on these forums, I believe.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  8. #8
    Join Date
    Aug 2005
    Posts
    40
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by Twey
    I see. Well, there's no reason for your script to get stuck in a loop there; in fact, there aren't even any loops for it to get stuck in. If you post the rest of the code, I'll see if I can sort it. However, the best way to do this sort of thing will always be server-side.Unfortunately, so do most modern languages. Unless you know the language well enough to spot distinguishing marks, it's almost impossible to tell them apart. For example, the above script could quite easily be Javascript, Java, C, C++, or, apparently, Flash ActionScript. The only thing that could have given it away, if I'd known ActionScript, would have been the predefined functions used. However, if those functions were defined elsewhere, that's a perfectly valid example of any of the languages listed above, and probably quite a few more that I don't know or didn't think of.
    true that is why it appeard to be cold fusion script to me for a while there

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •