smtp协议手工使用

发表于:2007-06-21来源:作者:点击数: 标签:
[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:wei

   
  [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@clearcase/" target="_blank" >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)

原文转自:http://www.ltesting.net