X
xtyxc
Unregistered / Unconfirmed
GUEST, unregistred user!
在FORM1上加上NMSMTP组件,BUTTON组件.
在BUTTON1的ONCLICK中加入如下语句却发不出邮件,WHY?
nmsmtp1.host:='163.com';
nmsmtp1.useid:='xtyxc';
nmsmtp1.password:='diwp;
nmsmtp1.port:=1080;
nmsmtp1.postmessage.toaddress.add('xtyxc@163.com');
nmsmtp1.postmessage.fromaddress:='xtyxc@163.com';
nmsmtp1.postmessage.fromname:='xtyxc';
nmsmtp1.postmessage.subject:='sos';
nmsmtp1.postmessage.body.text:='abct';
nmsmtp1.connect;
nmsmtp1.sendmail;
[!][!]
在BUTTON1的ONCLICK中加入如下语句却发不出邮件,WHY?
nmsmtp1.host:='163.com';
nmsmtp1.useid:='xtyxc';
nmsmtp1.password:='diwp;
nmsmtp1.port:=1080;
nmsmtp1.postmessage.toaddress.add('xtyxc@163.com');
nmsmtp1.postmessage.fromaddress:='xtyxc@163.com';
nmsmtp1.postmessage.fromname:='xtyxc';
nmsmtp1.postmessage.subject:='sos';
nmsmtp1.postmessage.body.text:='abct';
nmsmtp1.connect;
nmsmtp1.sendmail;
[!][!]