T
tlh
Unregistered / Unconfirmed
GUEST, unregistred user!
我用一个smtp 控件发送邮件设置如下
nmsmtp1.charset us-ascii
clearparams true
host smtp.263.net
port 25
代码:
NMSMTP1.Host:='smtp.263.net';
NMSMTP1.UserID:='tswordsman';
NMSMTP1.Connect;
NMSMTP1.PostMessage.FromName:='tswordsman';
NMSMTP1.PostMessage.FromAddress:='tswordsman@263.net';
NMSMTP1.PostMessage.ToAddress.Add('tianscholar@163.com');
NMSMTP1.PostMessage.Body.add('测试');
NMSMTP1.PostMessage.Subject:='测试';
nmsmtp1.SendMail;
NMSMTP1.disConnect;
结果不正确提示是
553 you are not authorized to send mail as <mail from :<tswordsman@263.net>>
authentication is required
这个问题该如何解决,最好示例一下
nmsmtp1.charset us-ascii
clearparams true
host smtp.263.net
port 25
代码:
NMSMTP1.Host:='smtp.263.net';
NMSMTP1.UserID:='tswordsman';
NMSMTP1.Connect;
NMSMTP1.PostMessage.FromName:='tswordsman';
NMSMTP1.PostMessage.FromAddress:='tswordsman@263.net';
NMSMTP1.PostMessage.ToAddress.Add('tianscholar@163.com');
NMSMTP1.PostMessage.Body.add('测试');
NMSMTP1.PostMessage.Subject:='测试';
nmsmtp1.SendMail;
NMSMTP1.disConnect;
结果不正确提示是
553 you are not authorized to send mail as <mail from :<tswordsman@263.net>>
authentication is required
这个问题该如何解决,最好示例一下