打印本文 打印本文  关闭窗口 关闭窗口  
smtp协议手工使用
作者:佚名  文章来源:不详  点击数2288  更新时间:2007-5-18 3:07:04  文章录入:啊祖  责任编辑:啊祖

ode>[xmail@xmail log]$ telnet smtp.263.net 25
Trying 211.150.96.25...
Connected to smtp.263.net.
Escape character is ’^]’.
220 Welcome to coremail System(With Anti-Spam) 2.1 for 263(040326)
HELO weiqiong@cctk.net
250 smtp.263.net
mail from:weiqiong@cctk.net
250 Ok
rcpt to:g2_t1@263.net
250 Ok
data
354 End data with <CR><LF>.<CR><LF>
haha
.
250 Ok: queued as B9E452FF3E
quit
221 Bye
Connection closed by foreign host.

  2. soap中设置超时时间

soap_init(&soap);
soap.send_timeout = 10;
soap.recv_timeout = 10;

  以秒为单位

soap_init(&soap);
soap_set_namespaces(&soap, abs_namespaces);

  获取错误号字符串

*soap_faultcode(&soap), *soap_faultstring(&soap)

打印本文 打印本文  关闭窗口 关闭窗口