X
xhli
Unregistered / Unconfirmed
GUEST, unregistred user!
我安装啦indy,好像是9.0
我在delphi5下写啦段代码:(加入啦一个TidMessage和一个TidSMTP控件)
SMTP.AuthenticationType := atLogin;
SMTP.Username:= 'xxx@263.net';//帐户
SMTP.Password :='xxx' ;//密码
SMTP.Host := 'SMTP.263.net';
SMTP.Port := 25;
{now we send the message}
try
SMTP.Connect;
except
showmessage('连接失败!');
exit;
end;
try
with IdMsgSend do
begin
body.Clear;
Body.Add('test');//内容
From.Text := 'xxx@263.net';
Recipients.EMailAddresses :='yyy@163.net';//收件人
Subject:='test';//主题
end;
SMTP.Send(IdMsgSend);
finally
SMTP.Disconnect;
end;
怎么一运行就死啦?只有这些代码!
我在delphi5下写啦段代码:(加入啦一个TidMessage和一个TidSMTP控件)
SMTP.AuthenticationType := atLogin;
SMTP.Username:= 'xxx@263.net';//帐户
SMTP.Password :='xxx' ;//密码
SMTP.Host := 'SMTP.263.net';
SMTP.Port := 25;
{now we send the message}
try
SMTP.Connect;
except
showmessage('连接失败!');
exit;
end;
try
with IdMsgSend do
begin
body.Clear;
Body.Add('test');//内容
From.Text := 'xxx@263.net';
Recipients.EMailAddresses :='yyy@163.net';//收件人
Subject:='test';//主题
end;
SMTP.Send(IdMsgSend);
finally
SMTP.Disconnect;
end;
怎么一运行就死啦?只有这些代码!