N
netsong
Unregistered / Unconfirmed
GUEST, unregistred user!
当邮箱的账号/密码错误时,会触发“OnAuthenticationFailed”事件,我在此事件中
换个密码重试,可是出错:“Authentication Failed!”系统错误。程序是这样写的:
procedure TFormMain.Button1Click(Sender: TObject);
begin
if NMPOP31.Connected then NMPOP31.Disconnect;
NMPOP31.Host:=edithost.text;
NMPOP31.UserID:=editname.text;
NMPOP31.Password:='aaaaaa';
NMPOP31.Connect; ============================(**)
end;
procedure TFormMain.NMPOP31Connect(Sender: TObject);
begin
showmessage('Connected!');
end;
procedure TFormMain.NMPOP31AuthenticationFailed(var Handled: Boolean);
begin
NMPOP31.Host:=edithost.text;
NMPOP31.UserID:=editname.text;
NMPOP31.Password:='bbbbbb';
Handled := True;
end;
出错指针指到(**)处。
为什么?
换个密码重试,可是出错:“Authentication Failed!”系统错误。程序是这样写的:
procedure TFormMain.Button1Click(Sender: TObject);
begin
if NMPOP31.Connected then NMPOP31.Disconnect;
NMPOP31.Host:=edithost.text;
NMPOP31.UserID:=editname.text;
NMPOP31.Password:='aaaaaa';
NMPOP31.Connect; ============================(**)
end;
procedure TFormMain.NMPOP31Connect(Sender: TObject);
begin
showmessage('Connected!');
end;
procedure TFormMain.NMPOP31AuthenticationFailed(var Handled: Boolean);
begin
NMPOP31.Host:=edithost.text;
NMPOP31.UserID:=editname.text;
NMPOP31.Password:='bbbbbb';
Handled := True;
end;
出错指针指到(**)处。
为什么?