我想使用Gmail帳戶,這些設置發送電子郵件(Delphi 7中,印10):印第安納波利斯10 - IdSMTP.Send()掛起從Gmail發送郵件時佔
TIdSmtp:
Port = 587;
UseTLS := utUseExplicitTLS;
TIdSSLIOHandlerSocketOpenSSL:
SSLOptions.Method := sslvTLSv1;
似乎一切都設置好。我得到這個迴應:
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;
然後它掛起,並沒有完成。電子郵件不發送。可能是什麼問題?
UserAgent用於HTTP請求,而不是SMTP – glob 2010-01-28 02:45:06
** glob **您是正確的;我最後說「我不確定你使用的組件是否具有任何類型的UserAgent屬性」 – 2010-01-28 15:44:57