Download MetaTrader 5

SendMail

Sends an email at the address specified in the settings window of the "Email" tab.

bool  SendMail(
   string  subject,       // header
   string  some_text      // email text
   );

Parameters

subject

[in]  Email header.

some_text

[in]  Email body.

Return Value

true — if an email is put into the send queue, otherwise - false.

Note

Sending can be prohibited in settings, email address can be omitted as well. For the error information call GetLastError().

SendMail() function does not work in the Strategy Tester.


Updated: 2015.12.03