I've been looking for a reliable, sophisticated email "server" running outside of MT4 that can be called from a script, an EA or an indicator but primarily for use in an indicator where delays to do "stuff" such as sending emails with attachments from multiple charts at the same time can be unreliable.
After a bit of research I came across 'mailsend' at http://www.muquit.com/muquit/softwar.../mailsend.html which has proven to be the ideal candidate although it is an executable not a service per se.
The attached example script calls 'cmd.exe ' using ShellExecute (effectively a hidden Command Prompt window) and runs mailsend briefly with the appropriate parameters to send the email.
Before running the script:
After a bit of research I came across 'mailsend' at http://www.muquit.com/muquit/softwar.../mailsend.html which has proven to be the ideal candidate although it is an executable not a service per se.
The attached example script calls 'cmd.exe ' using ShellExecute (effectively a hidden Command Prompt window) and runs mailsend briefly with the appropriate parameters to send the email.
Before running the script:
- Put MailSend v1.0.mq4 in the MT4 scripts folder
- Check out my comments in the script
- Download mailsend from the link above and put the exe in your MT4 root folder
- If required rename the exe at line 68 in the script to the exe name from your download
- If you want you can drop a chart screenshot (screenshot.gif is specified in the code) into experts\files\shots\
- Change the paramters in the script to suit your email details
- Drag the script onto a chart and you should pretty much instantaneously receive an email
If you don't receive an email then there is something wrong with the info in the parameters. I know it works with Gmail and 1&1 and should work with most if not all other providers. If one character is out of place then it probably won't work so do your research.....I'm afraid I can't help with individual queries. When it works drop the relevant code into your indi or EA.
Attached File(s)
MailSend v1.0.mq4
6 KB
|
236 downloads