Testing the Easy Email Connection
After Easy Email has be Enabled and Configured it should be tested on a Demo account.
- From the Welcome screen, click the EA Builder button to create a new system.
- Uncheck all of the Add Drawing check boxes so that not Trading Drawings are created.
- This will create a single system drawing with a Start and an End Element.
- Use the Communication Manager method to send an email:
- Check EA_Started
- Check Send Email
- Leave Max Times to send as 1
- Check Attach screenshot
- Click Done to save the changes and close the window.
- Click Build to build the Expert Advisor.
- Open your MetaTrader platform and attach the EA to a price chart.
When the EA is attached to a chart, in the Common tab, in the Safety section, there is a checkbox to Allow DLL imports and another to Confirm DLL function calls.
- Allow DLL imports must be checked
- Confirm DLL function calls should be unchecked
If the Confirm DLL function calls is unchecked, each call to the DLL function ezemail will need to be manually permitted.
- Select the Experts Tab in the Terminal window of the platform.
Shortly after the EA has been attached to a price chart an email should be sent from the platform to the specified To address.
If the email is sent successfully, the message Email send successfully! is written to the Experts tab:
If the email is not sent successfully, the message
Email error. See log file at: experts\files\ezemail.log
is written to the Experts tab:
The full path of the experts\files\ezemail.log file is found under the MetaTrader platform installtion folder. For example:
C:\Program Files (x86)\MetaTrader 4\experts\files\ezemail.log
- The file ezemail.log is a plain text file and can be opened with any text editor including notepad.
- If the email was unsuccessfully, the file ezemail.log will contain details about the error.
Sample errors using Gmail
Error |
Error Message |
Incorrect UserName |
Error with user authentication;Server says: 535-5.7.1 Username and Password not accepted. Learn more at 535 5.7.1 http://support.google.com/mail/bin/answer.py?answer=14257 dz9sm16749589vdc.4 - gsmtp |
Incorrect Password |
Error with user authentication;Server says: 535-5.7.1 Username and Password not accepted. Learn more at 535 5.7.1 http://support.google.com/mail/bin/answer.py?answer=14257 hi4sm13011409igc.6 - gsmtp |
Incorrect Server Name (removed the .com) |
Error with connecting server;current server: smtp.gmail;getaddrinfo failed for smtp.gmail 465, error: 0x00002af9 |
Incorrect Port |
Error with connecting server;current server: smtp.gmail.com;connect failed, error: 0x0000274c |