I Trade Forex on a MT4 Platform and my Buys and Sells are sent to me by Email.
I require a DLL that will log into a pop3/smtp accounts and read the email that is in the box. I only require the Text in the Email, so it can be returned as a String or as an array or write it to a TXT or CSV file. The emails that I want read will come from the same email address but it would be good if I can select the Email address to Read. The DLL file should only read the new emails or simply just delete the Email form the server once it is read.
My script that will call the DLL file is in MT4 Language which is a simplyfied version of "C". The email user, password and Server Name... could be passed as parameters so I can call the DLL function for each email address or if that is difficult would be stored in a CSV database in which case the program would need to cycle through each account.
This program should run under windows VISTA, Windows7 & XP if thats a problem, it could just run under Windows7.
int getMessages(string Var1, string Var2, string Var3, string Var4, string Var5, string Var6, string Var7.............);
string POP3 = "pop3";
string ServerName = "mail.servername.com";
string EmailUsername = "myemailusername";
string EmailPassword = "mypassword";
string FileRead="EmailsRead.CSV" //Config File
string FileWrite="EmailsRead.CSV" or FileName="EmailsRead.TXT"
NumberRead = getMessages(EmailUsername, EmailPassword, ServerName, POP3, "110", "def", Arraytxt, ErrorMsg);
//arrytxt passed by reference
or If this is too expensive then perhaps it can
NumberRead = getMessages(EmailUsername, EmailPassword, ServerName, POP3, "110", "def", FileWrite, ErrorMsg);
NumberRead = getMessages(FileRead, FileWrite);
//NOTE if Reading & Writing to File I would need to be able to specify Path
NumberRead is the Number of Emails Read & if Less than 0 signifying an Error.
You could supply a list for meaning for each error Number.
I can change my MT4 SCript to suite any DLL file that you may have already written.
If the program writes the Emails to a file than it does not have to be a DLL.
I am willing to pay US$50.00 by PayPal
Please feel free to contact me to clarify or more details.