It's impossible to send email from MT4 using gmail smtp because MT4 doesn't support SSL Authentication
The Solution:
Set Up a STUNNEL proxy on a computer http://www.stunnel.org/
Stunnel is really simple to use in this configuration especially with Gmail. Will work with any email server.
For Windows Users download the: stunnel-4.36-installer.exe. This program is really small (700KB)
Once downloaded run the installer. Then browse to this directory: C:\Program Files\stunnel
Inside you will find a file called: stunnel.conf. Open this with NOTEPAD
Change it to the following for Gmail then SAVE.
-- begin stunnel.conf --
cert = stunnel.pem
socket = l:TCP_NODELAY=1
socket = r:TCP_NODELAY=1
client = yes
[pop3s]
accept = 110
connect = pop.gmail.com:995
[imaps]
accept = 143
connect = imap.gmail.com:993
[ssmtp]
accept = 25
connect = smtp.gmail.com:465
-- end stunnel.conf --
Now Stunnel is READY.
Just click START, PROGRAMS, STUNNEL, RUN STUNNEL
To automate every time the computer turns off just create a shortcut of RUN STUNNEL then paste this shortcut into the STARTUP folder.
Once Stunnel is running you will see the ICON next to the clock on the taskbar.
Now you only have to configure the email in MT4