随笔分类 - indy
摘要:用indy开发了发送邮件程序,通过126,sina等发送邮件可以发送出去,而通过tom,163则被退回,显示被kbas系统退回.后来通过观察Foxmail的通讯过程,区别在foxmail发送EHLO指令时用的是一个名字,而indy缺少使用的是邮箱名字.通过直接使用Socket连接发送邮件测试,将EHLO改为名字后发送成功.研究indy源码,发现indy中的smtp控件的HelloName属性如果有值的话就使用该属性值,没有值的话则使用其他值:if HeloName '' then begin LNameToSend := HeloName; end else begin //N
阅读全文
摘要:hotmail开放了pop3,可以使用客户端工具收取邮件了。POP 服务器: pop3.live.com (端口 995)需要 POP SSL?: 是的用户名: Windows Live ID, 比如:livesino@hotmail.com密码: 对应 Windows Live ID 的密码SMTP 服务器: smtp.live.com (端口 25)需要身份验证?: 是的需要 TLS/SSL?: 是的使用indy,需要SSL认证,到网上查阅 ,看到了Marco Cantù的文章:Send mail to GMail using IndyOnce you've moved
阅读全文
摘要:使用Indy 10中TIdHTTP的例子:代码uses IdHttp;...function HttpGet(const Url: string; var Html: string): Boolean;var HttpClient: TIdHTTP;begin Result := False; HttpClient := TIdHTTP.Create(nil); try Html := HttpClient.Get(Url); Result := True; except on e: Exception do begin end; end; Htt...
阅读全文

浙公网安备 33010602011771号