php socket 发邮件

我是east 2010-09-01 04:04:24
请教
我在网上找到了段代码 ,是php socket发邮件的 。我在本地测试好用 。
可是当上传到服务器 在测 就链接不上了。


请教 如何解决?????????

host:SMTP.163.com
port:25
...全文
609 11 打赏 收藏 转发到动态 举报
写回复
用AI写文章
11 条回复
切换为时间正序
请发表友善的回复…
发表回复
ltn1986 2010-09-06
  • 打赏
  • 举报
回复
[Quote=引用 9 楼 xinjian555 的回复:]
很明显服务器的25端口没开~~~~
[/Quote]端口没有开吧
kaifadi 2010-09-06
  • 打赏
  • 举报
回复
用linux的测试端口命令看看那个机器25端口有没有开,PHP里好象就有测试代码,可惜我对PHP不熟悉!

MARK!
xinjian555 2010-09-05
  • 打赏
  • 举报
回复
很明显服务器的25端口没开~~~~
我是east 2010-09-03
  • 打赏
  • 举报
回复
服务器在美国
方分析一下
有几种问题的可能
1,服务器关闭或屏蔽了端口
2,服务器不支持socket (这种情况可能性不大)
3................

我是east 2010-09-03
  • 打赏
  • 举报
回复
我是了 21 110 也都不行
我是east 2010-09-03
  • 打赏
  • 举报
回复
25 是163的开放端口啊
xuzuning 2010-09-03
  • 打赏
  • 举报
回复
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 被打开
我是east 2010-09-03
  • 打赏
  • 举报
回复
这是错误信息
我是east 2010-09-03
  • 打赏
  • 举报
回复
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

Warning: 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

Warning: 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 80

Warning: 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

Warning: 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 80

Warning: 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

Warning: 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 80

Warning: 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

Warning: 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 80

Warning: 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
CunningBoy 2010-09-01
  • 打赏
  • 举报
回复
贴出错误信息
amani11 2010-09-01
  • 打赏
  • 举报
回复
服务器可能不支持socket

20,359

社区成员

发帖
与我相关
我的任务
社区描述
“超文本预处理器”,是在服务器端执行的脚本语言,尤其适用于Web开发并可嵌入HTML中。PHP语法利用了C、Java和Perl,该语言的主要目标是允许web开发人员快速编写动态网页。
phpphpstorm 技术论坛(原bbs)
社区管理员
  • 开源资源社区
  • phpstory
  • xuzuning
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧