在
在世寻欢
Unregistered / Unconfirmed
GUEST, unregistred user!
var
Msg:TidMessage;
Mail:TidSMTP;
begin
with Msg do
begin
From.Text:='forjoylee1985@163.com';
Recipients.EMailAddresses:='zhouzuoji_1985@yahoo.com.cn';
Subject:='主题';
Body.Text:='idSMTP邮件发送测试'
end;
with Mail do
begin
Host:='smtp.163.com';
UserName:='forjoylee';
Password:='*******';
Connect;
try
Send(Msg);
finally
Disconnect;
end;
end;
这样会发生异常。eIDProtocalReplyError,提示信息是‘bad sequence of commands’
请朋友们帮忙,奉上50分。
Msg:TidMessage;
Mail:TidSMTP;
begin
with Msg do
begin
From.Text:='forjoylee1985@163.com';
Recipients.EMailAddresses:='zhouzuoji_1985@yahoo.com.cn';
Subject:='主题';
Body.Text:='idSMTP邮件发送测试'
end;
with Mail do
begin
Host:='smtp.163.com';
UserName:='forjoylee';
Password:='*******';
Connect;
try
Send(Msg);
finally
Disconnect;
end;
end;
这样会发生异常。eIDProtocalReplyError,提示信息是‘bad sequence of commands’
请朋友们帮忙,奉上50分。