Z
zhengjunfeng
Unregistered / Unconfirmed
GUEST, unregistred user!
procedure TForm1.Button1Click(Sender: TObject);
begin
NMPOP31.Host := '263.net';
NMPOP31.UserID := .......;
NMPOP31.Password := .......;
NMPOP31.Connect;
end;
procedure TForm1.Button2Click(Sender: TObject);
var
S: String;
M: Integer;
begin
if NMPOP31.MailCount > 0 then
begin
if InputQuery('Retrieve an E-Mail message', 'Which message? (1-'+IntToStr(NMPOP31.MailCount)+')', S) then
begin
M := StrToIntDef(S, -1);
If (M < 0) or (M > NMPOP31.MailCount) then
ShowMessage('Invalid message index')
else
NMPOP31.Getmailmessage(M);
end;
end
else
ShowMessage('No Messages to Get');
end;
为什么到GetMailMessage是老是出现异常呢?
begin
NMPOP31.Host := '263.net';
NMPOP31.UserID := .......;
NMPOP31.Password := .......;
NMPOP31.Connect;
end;
procedure TForm1.Button2Click(Sender: TObject);
var
S: String;
M: Integer;
begin
if NMPOP31.MailCount > 0 then
begin
if InputQuery('Retrieve an E-Mail message', 'Which message? (1-'+IntToStr(NMPOP31.MailCount)+')', S) then
begin
M := StrToIntDef(S, -1);
If (M < 0) or (M > NMPOP31.MailCount) then
ShowMessage('Invalid message index')
else
NMPOP31.Getmailmessage(M);
end;
end
else
ShowMessage('No Messages to Get');
end;
为什么到GetMailMessage是老是出现异常呢?