SMTP access for SendMail

 
i know this has come up a few times but i cant find a clear answer in the other topics or articles. .. I cant use gmail for SMTP because i cant disable TLS (or atleast not aware how to disable it) so when i try to connect to gmail i get :

Mail: 530 5.7.0 Must issue a STARTTLS command first b18sm32426368ana.14

Can someone tell me how i can disable the Secure Connection (TLS layer) in gmail ? or an alternative way to set this up using another provider? I have tried using the service "Free SMTP Server" through port 25 but I cant get this to work either. Please help!
 
And yes I am using the correct gmail port: 465 or 587
 
no-one uses SendMail()?
 
Use connection provider for the SMTP as test:
I used to test with "the file", with standard SendMail() parameters and it was with success, and with standard enabled and filled settings in Options/Email (in mt4), success when I used connection provider for the SMTP. I also tried other ways but stucked at wall, so I gave up.
Files:
 
alpha430
Any luck with gmail? I also tried the "Free SMTP" server and couldn't get it to work either. Is it official, Gmail can not be used?
 

The SMTP 'client" in MT4 is barebones. it does not have TLS/SSL support.

The SMTP "server" at GMail has more features. It requires you to use TLS/SSL before it will accept mail for forwarding to GMail or other recipients.

It won't work without enhancements to MT4 Sendmail() function or talking Google into reducing "security".

Transport Layer Security (TLS) and its predecessor, Secure Sockets Layer (SSL), are cryptographic protocols that provide secure communications on the Internet for such things as web browsing, e-mail, Internet faxing, instant messaging and other data transfers. There are slight differences between SSL and TLS, but the protocol remains substantially the same.

TLS involves three basic phases:

  1. Peer negotiation for algorithm support
  2. Key exchange and authentication
  3. Symmetric cipher encryption and message authentication

-------

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

MT4 SMTP Client sends mail to the local SMTP server, it is all plain text...

12:28:11.375: Connection from 127.0.0.1, Thu Dec 27 12:28:11 2007<lf>
12:28:11.390: << 220 myPc.homeip.net ESMTP server ready.<cr><lf>
12:28:11.390: >> HELO myPc<cr><lf>
12:28:11.390: << 250 myPc.homeip.net Hello, myPc.<cr><lf>
12:28:11.390: >> MAIL FROM: <test@myPc.homeip.net><cr><lf>
12:28:11.390: << 250 Sender OK - send RCPTs.<cr><lf>
12:28:11.390: >> RCPT TO: <test2@myPc.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@myPc.homeip.net><cr><lf>
12:28:11.406: >> To: "MailTest" <test2@myPc.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 myPc.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:

 
phy,

i dont have access to ISP email accounts which allow SMTP, so i cant use a personal mail server.

I give up anyway, this is impossible and i have spend too much time on this.. im going to use an alternative method like ftp.
 
phy:

The SMTP 'client" in MT4 is barebones. it does not have TLS/SSL support.

The SMTP "server" at GMail has more features. It requires you to use TLS/SSL before it will accept mail for forwarding to GMail or other recipients.

It won't work without enhancements to MT4 Sendmail() function or talking Google into reducing "security".

Transport Layer Security (TLS) and its predecessor, Secure Sockets Layer (SSL), are cryptographic protocols that provide secure communications on the Internet for such things as web browsing, e-mail, Internet faxing, instant messaging and other data transfers. There are slight differences between SSL and TLS, but the protocol remains substantially the same.

TLS involves three basic phases:

  1. Peer negotiation for algorithm support
  2. Key exchange and authentication
  3. Symmetric cipher encryption and message authentication

-------

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

MT4 SMTP Client sends mail to the local SMTP server, it is all plain text...

12:28:11.375: Connection from 127.0.0.1, Thu Dec 27 12:28:11 2007<lf>
12:28:11.390: << 220 myPc.homeip.net ESMTP server ready.<cr><lf>
12:28:11.390: >> HELO myPc<cr><lf>
12:28:11.390: << 250 myPc.homeip.net Hello, myPc.<cr><lf>
12:28:11.390: >> MAIL FROM: <test@myPc.homeip.net><cr><lf>
12:28:11.390: << 250 Sender OK - send RCPTs.<cr><lf>
12:28:11.390: >> RCPT TO: <test2@myPc.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@myPc.homeip.net><cr><lf>
12:28:11.406: >> To: "MailTest" <test2@myPc.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 myPc.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:

hello Phy,

I would appreciate if you told me any email provider which does work with metatrader.

Look forward for your reply.

Thanks a lot in advance.

 
jorgecanta47:
phy:

The SMTP 'client" in MT4 is barebones. it does not have TLS/SSL support.

The SMTP "server" at GMail has more features. It requires you to use TLS/SSL before it will accept mail for forwarding to GMail or other recipients.

It won't work without enhancements to MT4 Sendmail() function or talking Google into reducing "security".

Transport Layer Security (TLS) and its predecessor, Secure Sockets Layer (SSL), are cryptographic protocols that provide secure communications on the Internet for such things as web browsing, e-mail, Internet faxing, instant messaging and other data transfers. There are slight differences between SSL and TLS, but the protocol remains substantially the same.

TLS involves three basic phases:

  1. Peer negotiation for algorithm support
  2. Key exchange and authentication
  3. Symmetric cipher encryption and message authentication

-------

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

MT4 SMTP Client sends mail to the local SMTP server, it is all plain text...

12:28:11.375: Connection from 127.0.0.1, Thu Dec 27 12:28:11 2007<lf>
12:28:11.390: << 220 myPc.homeip.net ESMTP server ready.<cr><lf>
12:28:11.390: >> HELO myPc<cr><lf>
12:28:11.390: << 250 myPc.homeip.net Hello, myPc.<cr><lf>
12:28:11.390: >> MAIL FROM: <test@myPc.homeip.net><cr><lf>
12:28:11.390: << 250 Sender OK - send RCPTs.<cr><lf>
12:28:11.390: >> RCPT TO: <test2@myPc.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@myPc.homeip.net><cr><lf>
12:28:11.406: >> To: "MailTest" <test2@myPc.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 myPc.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:

hello Phy,

I would appreciate if you told me any email provider which does work with metatrader.

Look forward for your reply.

Thanks a lot in advance.

Well, this is not a problem anymore.

Thanks anyways.

Reason: