请教
我在网上找到了段代码 ,是php socket发邮件的 。我在本地测试好用  。
可是当上传到服务器 在测 就链接不上了。
请教 如何解决?????????host:SMTP.163.com
port:25

解决方案 »

  1.   

    Warning: socket_connect() [function.socket-connect]: unable to connect [111]: Connection refused in /home/wangfeng/public_html/cfw_ta_test/mail.php on line 25Warning: socket_write() [function.socket-write]: unable to write to socket [32]: Broken pipe in /home/wangfeng/public_html/cfw_ta_test/mail.php on line 79Warning: socket_read() [function.socket-read]: unable to read from socket [107]: Transport endpoint is not connected in /home/wangfeng/public_html/cfw_ta_test/mail.php on line 80Warning: socket_write() [function.socket-write]: unable to write to socket [32]: Broken pipe in /home/wangfeng/public_html/cfw_ta_test/mail.php on line 79Warning: socket_read() [function.socket-read]: unable to read from socket [107]: Transport endpoint is not connected in /home/wangfeng/public_html/cfw_ta_test/mail.php on line 80Warning: socket_write() [function.socket-write]: unable to write to socket [32]: Broken pipe in /home/wangfeng/public_html/cfw_ta_test/mail.php on line 79Warning: socket_read() [function.socket-read]: unable to read from socket [107]: Transport endpoint is not connected in /home/wangfeng/public_html/cfw_ta_test/mail.php on line 80Warning: socket_write() [function.socket-write]: unable to write to socket [32]: Broken pipe in /home/wangfeng/public_html/cfw_ta_test/mail.php on line 79Warning: socket_read() [function.socket-read]: unable to read from socket [107]: Transport endpoint is not connected in /home/wangfeng/public_html/cfw_ta_test/mail.php on line 80Warning: socket_write() [function.socket-write]: unable to write to socket [32]: Broken pipe in /home/wangfeng/public_html/cfw_ta_test/mail.php on line 79
      

  2.   

    Warning: socket_connect() [function.socket-connect]: unable to connect [111]: Connection refused in /home/wangfeng/public_html/cfw_ta_test/mail.php on line 25
    无法连接!
    请确认 端口25 被打开
      

  3.   

    服务器在美国 
    方分析一下
    有几种问题的可能 
    1,服务器关闭或屏蔽了端口
    2,服务器不支持socket (这种情况可能性不大)
    3................
      

  4.   

    用linux的测试端口命令看看那个机器25端口有没有开,PHP里好象就有测试代码,可惜我对PHP不熟悉!MARK!