现在基本上邮件服务器停用了SMTP和POP3,总算发现GMAIL可以,但是用outlook之类的软件可以接受,自己编写的代码总是报错.
try
//----建立pop3连接----// if POP.Connected then
begin
POP.Disconnect;
end;
POP.Host := string(getPopServer());//imap.gmail.com
POP.Port := getPopPort(); //995
userName:=string(getmailLogin()); //[email protected]
password:= string(getPassword()); //xxxx
POP.Username := userName;
POP.Password := password;
POP.Connect;//此处无法连接
except
.......
end;
try
//----建立pop3连接----// if POP.Connected then
begin
POP.Disconnect;
end;
POP.Host := string(getPopServer());//imap.gmail.com
POP.Port := getPopPort(); //995
userName:=string(getmailLogin()); //[email protected]
password:= string(getPassword()); //xxxx
POP.Username := userName;
POP.Password := password;
POP.Connect;//此处无法连接
except
.......
end;
解决方案 »
- 赐教:update不能更新符号'问题...
- 怎样把BDE打包?急......!
- FastReport如何改变某一Row的背景色?例如第1、3、5行数据底色为蓝色?
- 局部变量如果未进行初始化,是不是默认是0、nil、空串等值?抑或是一个不确定的任意值?
- 在win2000下,怎么让程序不出现在程序列表中啊?
- 实现自动压缩文件??
- 帮忙把下面的代码翻译一下
- 怎么注册一个COM+服务器,客户端怎么连接COM+服务器~
- sql.add的写法求助!!!!!!!!!!
- use xxunit除了用手工添加,有没有快捷的办法呢?
- 在fastreport中如何动态增在MEMO啊?谢谢大家了
- 如何在delphi中按照一定的格式生成一篇word文档
http://topic.csdn.net/u/20070106/10/efedb60b-7e96-44cf-913e-eddeecad417c.html参考 使用indy 9发送邮件支持SSL选项,gmail测试通过
http://blog.csdn.net/webouse/archive/2007/07/04/1678778.aspx