NMSMTP在邮箱登陆时出现"socket readln aborted"的错误?

eyesonmecn 2005-06-20 09:59:59
try
{
if (NMSMTP->Connected)
NMSMTP->Disconnect();
NMSMTP->Host = SHost; //SMTP主机名
NMSMTP->UserID = SUserName; //用户名
NMSMTP->Port=SPort;
NMSMTP->Connect();
AnsiString userName = Base64Encode(SUserName); //将用户名编码
AnsiString password = Base64Encode(SPassword); //将密码编码
NMSMTP->Transaction("auth login"); //开始验证
NMSMTP->Transaction(userName);
NMSMTP->Transaction(password);<<<-------------------出现错误
if (NMSMTP->Connected)
NMSMTP->Disconnect();
}
catch(...)
{
Error="邮箱连接出错!";
Sconnected=false;
return false;
}
Sconnected=true;
return true;

我在邮箱登陆时就出现"socket readln aborted"的错误,就无法连接邮箱。请各位高手帮助!!!
...全文
124 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
rcrain 2005-06-20
  • 打赏
  • 举报
回复

1,221

社区成员

发帖
与我相关
我的任务
社区描述
C++ Builder Windows SDK/API
社区管理员
  • Windows SDK/API社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧