Ronald I have an idea for fixing the bombing sendmail.
The following example should send a mail only each 2 minutes (instead of at each tick).
init()
{
datetime lastmailtime=TimeCurrent()
...
}
//Signal occurs.....
if ((TimeCurrent()-lastmailtime)> 60*2) //2 minutes in the example
{
Sendmail(things);
lastmailtime = TimeCurrent();
}
The problem is, during the first 2 minutes of running the EA, no mail will be send if a signal occurs. Just a matter of drinking the cofee in front of the computer. Im sorry but this is the only thing my couple of neurons came with to solve (quickly) this issue... :/
The following example should send a mail only each 2 minutes (instead of at each tick).
init()
{
datetime lastmailtime=TimeCurrent()
...
}
//Signal occurs.....
if ((TimeCurrent()-lastmailtime)> 60*2) //2 minutes in the example
{
Sendmail(things);
lastmailtime = TimeCurrent();
}
The problem is, during the first 2 minutes of running the EA, no mail will be send if a signal occurs. Just a matter of drinking the cofee in front of the computer. Im sorry but this is the only thing my couple of neurons came with to solve (quickly) this issue... :/
Meeeooow !!!