MQL4 Reference
Common functions
SendFTP
| bool SendFTP( |
string filename, string ftp_path=NULL) |
Sends the file to the FTP server set in the Tools->Options->Publisher tab. If the attempt fails, it retuns FALSE.
The function does not operate in the testing mode. This function cannot be called from custom indicators, either.
The file to be sent must be stored in the terminal_directory\experts\files folder or in its sub-folders.
It will not be sent if there is no FTP address and/or access password specified in settings.
Parameters:
| filename |
- |
File to be sent. |
| ftp_path |
- |
FTP path. If the path has not been specified, the path described in settings will be used. |
Sample:
int lasterror=0;
if(!SendFTP("report.txt"))
lasterror=GetLastError();
|
|
|