G
gbyahoo
Unregistered / Unconfirmed
GUEST, unregistred user!
1. 为什么 host 一定要接受方的主机kiss.com才能发送正常?
2. 为什么
MsgSend.Recipients.EMailAddresses := test@kiss.com; { To: header }
和 SMTP.Host := 'kiss.com';才能发送,如果SMTP.Host := '163.net'就发送不了,但是可以连接服务器SMTP.Connect;.发送时出现'553错误.
SMTP.Host := 'kiss.com';
SMTP.Port := 25;
SMTP.Connect;
MsgSend.Body.Clear;
MsgSend.Body.Assign(memo1.Lines);
MsgSend.From.Text := gasww@163.net;
MsgSend.Recipients.EMailAddresses := test@kiss.com; { To: header }
MsgSend.Subject := 'test'; { Subject: header }
try
SMTP.Send(MsgSend);
finally
SMTP.Disconnect;
2. 为什么
MsgSend.Recipients.EMailAddresses := test@kiss.com; { To: header }
和 SMTP.Host := 'kiss.com';才能发送,如果SMTP.Host := '163.net'就发送不了,但是可以连接服务器SMTP.Connect;.发送时出现'553错误.
SMTP.Host := 'kiss.com';
SMTP.Port := 25;
SMTP.Connect;
MsgSend.Body.Clear;
MsgSend.Body.Assign(memo1.Lines);
MsgSend.From.Text := gasww@163.net;
MsgSend.Recipients.EMailAddresses := test@kiss.com; { To: header }
MsgSend.Subject := 'test'; { Subject: header }
try
SMTP.Send(MsgSend);
finally
SMTP.Disconnect;