7
780626
Unregistered / Unconfirmed
GUEST, unregistred user!
请问在Delphi6中使用 NMSMTP1来发送邮件,
with NMSMTP1 do
begin
Host:='pub.zhuhai.gd.cn';
port:=25;
userID:='zhyuhua';
Connect;
postMessage.fromAddress:='zhyuhua@pub.zhuhai.gd.cn';
postMessage.fromname:='财务部来函';
postMessage.ToAddress.Add('linwangxian@msn.com');
postMessage.Subject:='财务部来函';
postMessage.Body.Assign(txtbody.Lines);
sendMail;
end;
出错信息为:503 need RCPT before DATA
可能邮件服务器发送邮件时需要密码了,但不知如何处理?请各路高手指点.
with NMSMTP1 do
begin
Host:='pub.zhuhai.gd.cn';
port:=25;
userID:='zhyuhua';
Connect;
postMessage.fromAddress:='zhyuhua@pub.zhuhai.gd.cn';
postMessage.fromname:='财务部来函';
postMessage.ToAddress.Add('linwangxian@msn.com');
postMessage.Subject:='财务部来函';
postMessage.Body.Assign(txtbody.Lines);
sendMail;
end;
出错信息为:503 need RCPT before DATA
可能邮件服务器发送邮件时需要密码了,但不知如何处理?请各路高手指点.