MathGroup Archive 2011

[Date Index] [Thread Index] [Author Index]

Search the Archive

Sending an email with a condition be verified

  • To: mathgroup at smc.vnet.net
  • Subject: [mg122609] Sending an email with a condition be verified
  • From: Guillermo Sanchez <guillermo.sanchez at hotmail.com>
  • Date: Thu, 3 Nov 2011 03:45:56 -0500 (EST)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com

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 at 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



  • Prev by Date: Re: Simple question about inverse of a function
  • Next by Date: Re: Bernoulli Numbers
  • Previous by thread: Re: LogErfc
  • Next by thread: Re: Sending an email with a condition be verified