O
onlyboy1314
Unregistered / Unconfirmed
GUEST, unregistred user!
我的程序代码<br>procedure TEmail.BitBtn1Click(Sender: TObject);<br>begin<br><br>with IdSMTP1 do<br>begin<br> Host :='smtp.126.com'; Port := 25; // smtp服务默认的端口为25<br> Username:='longli2002';<br> Password:='521314';<br> authenticationType := atLogin;<br>end;<br><br>with Idmessage1 do<br> begin<br> Recipients.EMailAddresses :='onlyboy1314@126.com';//收件人地址<br> From.Address :='longli2002@126.com'; //发件人地址<br> Subject :=edit3.Text; //邮件主题<br> Body.Assign(memo1.Lines); //邮件正文<br> ContentType:='TEXT/PLAIN';<br>end;<br><br>idsmtp1.Connect();<br>with idsmtp1 do<br> try<br> idsmtp1.Send(Idmessage1); //发送刚才创建的邮件<br> ShowMessage('发送完毕'); //发送完毕后提示<br> finally<br> Disconnect;<br> showmessage('发送失败') //断开服务器连接<br>end;<br><br>调试出现的错误提示是:Project project1.exe raised exception class ELdProtocolReplyErrot with message 'bad sequence of commands'<br>请大狭帮忙解决