Because if this email funbction is using dll in any way so it will not work with this VPS.
Best is use notification. I have tried the same thing before, but it also din't work in my case.
If you do not want to give up, the VPS is hosted in a different location which you need to authorise in Gmail.
Another thing is you may also need to use an App Password.

- www.lifewire.com
This fixed the problem. Logging into the gmail account from the server desktop and approving the security then allowed MT4 to work it's magic.
Thanks for the quick solutions - add me as a friend.
[SOLVED]
This fixed the problem. Logging into the gmail account from the server desktop and approving the security then allowed MT4 to work it's magic.
Thanks for the quick solutions - add me as a friend.
[SOLVED]
Hi Samuk,
Can you please explain what you did.. I am having the same problem. thanks
This fixed the problem. Logging into the gmail account from the server desktop and approving the security then allowed MT4 to work it's magic.
Thanks for the quick solutions - add me as a friend.
[SOLVED]

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
I have read many threads on this, on this forum and outside of it, but haven't managed to solve it so far.
I have an EA that sends an email on a new bar. The email function in Options works fine from my desktop.
The emailing function in the EA works perfectly from my desktop.
Applying exactly the same settings to the email function (and EA) on MT4 from the VPS results in an immediate error
Mail: login to smtp.gmail.com failed
I have added terminal.exe to the firewall exceptions.
Any ideas what I am missing?