Delphi Indy:连接正常关闭
使用D7 Indy 10最新版本.
我的代码使用TIdSMTP发送电子邮件. 代码如下: try ~~~~ ~~~~ _idSMTP := TIdSmtp.Create; with _idSMTP do begin Host := 'myhost'; Connect; try Send(_EmailMsg); Result := True; except on E: Exception do begin MsgDlgErr(Self.Handle,E.Message) end end; end; finally _idSMTP.Disconnect; _idSMTP.Free; end; 任何建议? 解决方法
在
http://www.swissdelphicenter.ch/en/showarticle.php?id=1阅读所有相关内容
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |