Results 1 to 7 of 7

Thread: email output question

  1. #1
    Newbie
    Join Date
    Nov 2008
    Posts
    42

    email output question

    I have MDX set to send an email when a certain input turns on.

    It continues to send emails the entire time the input is on.

    How do i make it only send one email, each time an input is turned on?

    Thanks

  2. #2
    Fusion Brain Creator 2k1Toaster's Avatar
    Join Date
    Mar 2006
    Location
    Colorado, but Canadian!
    Posts
    10,032
    Quote Originally Posted by faron View Post
    I have MDX set to send an email when a certain input turns on.

    It continues to send emails the entire time the input is on.

    How do i make it only send one email, each time an input is turned on?

    Thanks
    When the trigger happens, it switches a variable from 0 to 1. Then have your email send email only when the variable is 1. In that same loop, put the variable back to 0.
    Fusion Brain Version 6 Released!
    1.9in x 2.9in -- 47mm x 73mm
    30 Digital Outputs -- Directly drive a relay
    15 Analogue Inputs -- Read sensors like temperature, light, distance, acceleration, and more
    Buy now in the MP3Car.com Store

  3. #3
    Newbie
    Join Date
    Nov 2008
    Posts
    42
    do you have an example of this?

  4. #4
    Newbie
    Join Date
    Nov 2008
    Posts
    42
    Can someone show me an example of this code? I cant seem to make it work

  5. #5
    Newbie
    Join Date
    Nov 2008
    Posts
    42
    2k?????

  6. #6
    Fusion Brain Creator 2k1Toaster's Avatar
    Join Date
    Mar 2006
    Location
    Colorado, but Canadian!
    Posts
    10,032
    Fusion Brain Version 6 Released!
    1.9in x 2.9in -- 47mm x 73mm
    30 Digital Outputs -- Directly drive a relay
    15 Analogue Inputs -- Read sensors like temperature, light, distance, acceleration, and more
    Buy now in the MP3Car.com Store

  7. #7
    Newbie
    Join Date
    Nov 2008
    Posts
    42
    Iused that file as a base, and even though the variable gets changed to 2, it continues to send emails. This seems odd since the send email logic says to only email when variable equals 1.

    I am really trying to get this thing figured out please help me out here

Similar Threads

  1. DigitalFX 4.0
    By JohnWPB in forum RR Skins No Longer Supported
    Replies: 5569
    Last Post: 01-07-2012, 01:29 AM
  2. How to add a Digital Output instance to your configuration file
    By 2k1Toaster in forum FB Documentation and Tutorials
    Replies: 0
    Last Post: 06-07-2008, 11:20 AM
  3. Ipod / usb recognition question
    By psychotic in forum Newbie
    Replies: 0
    Last Post: 05-17-2008, 05:10 AM
  4. amplifier remote output question
    By Magsino in forum Car Audio
    Replies: 10
    Last Post: 01-05-2005, 12:10 PM

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
  •