这里是我的配置:Indy 10 - IdSMTP.Connect raise“无法加载SSL库”。
IdSMTP1.Host := 'smtp.gmail.com';
IdSMTP1.Port := 587;
IdSMTP1.UseTLS := utUseExplicitTLS;
IdSMTP1.IOHandler := IdSSLIOHandlerSocketOpenSSL1;
IdSSLIOHandlerSocketOpenSSL1.SSLOptions.Method := sslvTLSv1;
我从here下载了OpenSSL的,既libeay32.dll
和ssleay32.dll
在我申请的同一文件夹中。
的印版是:10.0.52
以下命令正在我的机器上:
telnet smtp.gmail.com 587
如何在TLS连接正确启用SMTP服务器,在我的情况的Gmail,使用印?
好像IdSSLOpenSSLHeaders.Load
找不到地址以下程序,其中包括:
@IdSslSessionGetId := LoadIndyFunction(fn_SSL_SESSION_get_id);
@IdSslSessionGetIdCtx := LoadIndyFunction(fn_SSL_SESSION_get_id_ctx);
@IdSslCtxGetVersion := LoadIndyFunction(fn_SSL_CTX_get_version);
@IdSslCtxSetOptions := LoadIndyFunction(fn_SSL_CTX_set_options);
@iddes_set_odd_parity := LoadFunctionCLib(fn_des_set_odd_parity);
@iddes_set_key := LoadFunctionCLib(fn_des_set_key);
@iddes_ecb_encrypt := LoadFunctionCLib(fn_des_ecb_encrypt);
这是WhichFailedToLoad
回了短信:
SSL_CTX_set_info_callback_indy
X509_STORE_CTX_get_app_data_indy
X509_get_notBefore_indy
X509_get_notAfter_indy
SSL_SESSION_get_id_indy
SSL_SESSION_get_id_ctx_indy
SSL_CTX_get_version_indy
SSL_CTX_set_options_indy
des_set_odd_parity
des_set_key des_ecb_encrypt
我正在关注此[教程](http://www.marcocantu.com/tips/oct06_gmail.html) – EProgrammerNotFound
我相信问题是dll的正确版本。我需要测试每一个吗? – EProgrammerNotFound
这是关于您使用的相同版本的['topic'](https://forums.embarcadero.com/message.jspa?messageID=406858)。 – TLama