Sending email when OPEN/CLOSE/MODIFY activities occur in your EA.
asagi:
I wrote an Windows application (.exe) which can be called in your EA to send email (e.g. Gmail) to a list of recipients (specified by an external file) when OPEN/CLOSE/MODIFY activities occur in your EA.
Drop me a message to talk more about the features and price. Thanks!
Or get it for FREE from here -> http://www.blat.net/
i thought MT4 had a built-in smtp client and native functions to send email already
It lacks many facilities such as multiple recipients, attachments, etc. It also depends on user defined settings which the EA has no access to...
Hi, I recall MT4 does not support SMTP over SSL.
My solution is a single EXE file which you call inside your EA. It works for GMAIL email sender/multiple-recipients. Attachments are possible too. Likewise, CC and BCC are supported.
Thanks Gordon. I'm grateful for people like you.
Hi all,
I wrote an Windows application (.exe) which can be called in your EA to send email (e.g. Gmail) to a list of recipients (specified by an external file) when OPEN/CLOSE/MODIFY activities occur in your EA.
Drop me a message to talk more about the features and price. Thanks!
///////////////////////////////// // Your EA code // ///////////////////////////////// #include <EmailAlert.mq4> void openTrade (...) { ... string emailSubjectMsg = "EURUSD - OPEN LONG"; string emailBodyMsg = "EURUSD - OPEN LONG at Price $1.3418. SL at 1.3218. TP at 1.3518"; emailAlert ("recipient.dat", emailSubjectMsg, emailBodyMsg); ... } ///////////////////////////////// // EmailAlert.mq4 code // ///////////////////////////////// void emailAlert (string recipientFilename, string subject, string body) { string exe_parameters = StringConcatenate (recipientFilename, " ", "[subject]", " ", subject, " ", "[/subject]", " ", "[body]", " ", body, " ", "[/body]"); ShellExecuteA(0, "Open", "emailer.exe, exe_parameters, "", 0); }