Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #6142

Sending an email with a condition be verified

From Guillermo Sanchez <guillermo.sanchez@hotmail.com>
Newsgroups comp.soft-sys.math.mathematica
Subject Sending an email with a condition be verified
Date 2011-11-03 08:51 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <j8tkmd$f0h$1@smc.vnet.net> (permalink)

Show all headers | View raw


Dear All,
I am looking for a sentence that check periodically a value and send
an email when a condition be verified.

For instance:  Test the "EUR/USD=94  (euro/dollar ratio) every 5 second
and send an email if "EUR/USD=94>1.35 (only one email when the condition
be verified)

I think same thing such as (but stopping when an e mail be send)

sm[mess_] := SendMail["To" -> "myname@hotmail.com",
 "Subject" -> "Test Message",  "Body" -> ToString[mess],  "Password" -
> "secret"]

ff := If[FinancialData["EUR/USD"] > 1.35, sm[FinancialData["EUR/
USD"]]]

Dynamic[Refresh[ff, UpdateInterval -> 5]]  (stopping when an email be
send)

Any idea?

Guillermo

Back to comp.soft-sys.math.mathematica | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Sending an email with a condition be verified Guillermo Sanchez <guillermo.sanchez@hotmail.com> - 2011-11-03 08:51 +0000
  Re: Sending an email with a condition be verified A Retey <awnl@gmx-topmail.de> - 2011-11-04 11:04 +0000
  Re: Sending an email with a condition be verified Armand Tamzarian <mike.honeychurch@gmail.com> - 2011-11-04 11:14 +0000

csiph-web