void SendMail(string subject, string some_text)
Sends a message to the e-mail set in the Tools->Options->EMail tab.
Tools > Options > EMail タブに設定した電子メールにメッセージを送信します。
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.
設定で送信を無効にすることができます。または、電子メールアドレスの指定を省略することができます。詳細なエラー情報を取得するには、GetLastError() 関数で呼び出さなくてはなりません。
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));
|