MQL4 - automated forex trading   /  

Documentation

MQL4 Reference  Common functions  SendMail

 
Use the opportunities of
MQL5 in MetaTrader 5
Study the new MQL5 language
Study the new MQL5 language.
Reference is already available
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));