Indy 10 - IdSMTP.Send() hangs when sending messages from GMail account
delphi, delphi-7, gmail, indy, smtp
Solution
The problem was simple. I was not patient enough and application didn't hang, there was long timeout. The timeout was result of wrong settings.
Problem
I am trying to send an e-mail using gmail account (Delphi 7, Indy 10) with these settings: TIdSmtp: ``` Port = 587; UseTLS := utUseExplicitTLS; ``` TIdSSLIOHandlerSocketOpenSSL: ``` SSLOptions.Method := sslvTLSv1; ``` Everything seems to be set ok. I get this response: ``` Resolving hostname smtp.gmail.com. Connecting to 74.125.77.109. SSL status: "before/connect initialization" SSL status: "before/connect initialization" SSL status: "SSLv3 write client hello A" SSL status: "SSLv3 read server hello A" SSL status: "SSLv3 read server certificate A" SSL status: "SSLv3 read server done A" SSL status: "SSLv3 write client key exchange A" SSL status: "SSLv3 write change cipher spec A" SSL status: "SSLv3 write finished A" SSL status: "SSLv3 flush data" SSL status: "SSLv3 read finished A" SSL status: "SSL negotiation finished successfully" SSL status: "SSL negotiation finished successfully" Cipher: name = RC4-MD5; description = RC4-MD5 SSLv3 Kx=RSA Au=RSA Enc=RC4(128) Mac=MD5 ; bits = 128; version = TLSv1/SSLv3; ``` And then it hangs and doesn't finish. E-mail is not sent. What can be the problem?