MQL4 Reference
Common functions
SendMail
| void SendMail( |
string subject, string some_text) |
Sends a message to the e-mail set in the Tools->Options->EMail tab.
The sending can be disabled in settings, or it can be omitted to specify the e-mail address.
To get the detailed error information, one has to call the GetLastError() function.
Parameters:
| subject |
- |
Subject text. |
| some_text |
- |
Mail body. |
Sample:
double lastclose=Close[0];
if(lastclose<my_signal)
SendMail("from your expert", "Price dropped down to "+DoubleToStr(lastclose,Digits));
|
|
|