MQL4 - automated forex trading   /  

Forum

Google and smtp setup for MT4

Back to topics list To post a new topic, please log in or register

avatar
87
brspMA 2007.12.27 07:10 
Hi Guys,

So is that possible to use the SMTP from Google's servers? and if that is possible, could anyone kindly let me know how. Which should be the configuration?

So far, I've tried smtp.gmail.com:587 , with my User Name and Password, but with no success.

thanks a lot,
Expert Advisors Based on Popular Trading Systems and Alchemy of Trading Robot Optimization

Expert Advisors Based on Popular Trading Systems and Alchemy of Trading Robot Optimization

This article dwells on implementation algorithm of simplest trading systems. The article will be useful for beginning traders and EA writers.


avatar
2646
phy 2007.12.27 07:44 

 

'SENDMAIL'

 

Or, install your own mail server on your PC:

Maybe something like this:

http://www.softstack.com/freesmtp.html


avatar
87
brspMA 2007.12.27 10:26 
Thanks a lot, phy,

I've checked this this topic http://forum.mql4.com/3980 . And I don't think that make much sense. For Google does support SMTP. I use gmail via webmail and via thunderbird through smtp.

So, what is the problem with MT4? Time out?

Thanks again,

avatar
2646
phy 2007.12.27 19:50 

 

So, what is the problem with MT4? Time out?


The SMTP function in MT4 does not include necessary options or interface software needed to access Gmail via SMTP


  1. Configuring other mail clients

    You can use the following information to configure POP with many mail clients. If you encounter difficulties, we suggest contacting your mail client's customer support department for further instructions -- we're unable to provide assistance configuring mail clients not in our supported POP client list.

    Incoming Mail (POP3) Server - requires SSL: pop.gmail.com
    Use SSL: Yes
    Port
    : 995
    Outgoing Mail (SMTP) Server - requires TLS: smtp.gmail.com (use authentication)
    Use Authentication: Yes
    Use STARTTLS: Yes (some clients call this SSL)
    Port
    : 465 or 587
    Account Name: your Gmail username (including @gmail.com)
    Email Address: your full Gmail email address (username@gmail.com)
    Password: your Gmail password

 

For MT4, here is a log from my personal mail server, which uses the standard SMTP port 25:

 

12:28:11.375: Connection from 127.0.0.1, Thu Dec 27 12:28:11 2007<lf>

12:28:11.390: << 220 xxxxx.homeip.net ESMTP server ready.<cr><lf>

12:28:11.390: >> HELO xxxxx<cr><lf>

12:28:11.390: << 250 xxxxx.homeip.net Hello, xxxxx.<cr><lf>

12:28:11.390: >> MAIL FROM: <test@xxxxx.homeip.net><cr><lf>

12:28:11.390: << 250 Sender OK - send RCPTs.<cr><lf>

12:28:11.390: >> RCPT TO: <test2@xxxxx.homeip.net><cr><lf>

12:28:11.390: << 250 Recipient OK - send RCPT or DATA.<cr><lf>

12:28:11.406: >> DATA<cr><lf>

12:28:11.406: << 354 OK, send data, end with CRLF.CRLF<cr><lf>

12:28:11.406: >> From: "Expert Advisor" <test@xxxxx.homeip.net><cr><lf>

12:28:11.406: >> To: "MailTest" <test2@xxxxx.homeip.net><cr><lf>

12:28:11.406: >> Subject: Hello<cr><lf>

12:28:11.406: >> Content-Type: text/plain;<cr><lf>

12:28:11.406: >> Content-Transfer-Encoding: 8bit<cr><lf>

12:28:11.406: >> <cr><lf>

12:28:11.406: >> Just a test<cr><lf>

12:28:11.406: >> <cr><lf>

12:28:11.406: >> .<cr><lf>

12:28:11.406: << 250 Data received OK.<cr><lf>

12:28:11.406: >> QUIT<cr><lf>

12:28:11.406: << 221 xxxxx.homeip.net Service closing channel.<cr><lf>

12:28:11.406: --- Connection closed normally at Thu Dec 27 12:28:11 2007. ---

12:28:11.406:


avatar
2
chuckee 2010.01.21 10:10 
brspMA wrote >>
Hi Guys,

So is that possible to use the SMTP from Google's servers? and if that is possible, could anyone kindly let me know how. Which should be the configuration?

So far, I've tried smtp.gmail.com:587, with my User Name and Password, but with no success.

thanks a lot,

As Gmail's SMTP requires SSL, MT4 will not work with it. SMTP2Go provides an SMTP server that works with MT4. See the link below:

http://www.smtp2go.com/blog/smtp-server-metatrader/


avatar
Moderator
2030
gordon 2010.01.21 11:49 
I'll give it a try. Thanks.

avatar
8
salakosunday 2010.11.13 00:22 
plz what is tghe website address of the webmail u re using
brspMA:
Thanks a lot, phy,

I've checked this this topic http://forum.mql4.com/3980 . And I don't think that make much sense. For Google does support SMTP. I use gmail via webmail and via thunderbird through smtp.

So, what is the problem with MT4? Time out?

Thanks again,

Back to topics list  

To add comments, please log in or register