联系官方销售客服

1835022288

028-61286886

开发框架 版主:迅睿框架研发组
后台“发送测试”时 提示“fsockopen 无法连接到邮件服务器 [101-Network is unreachable]”
类型:迅睿CMS 更新时间:2021-03-31 13:42:20 表单邮件

上线的网站配置留言表单邮箱提醒,点击后台“发送测试”时 提示“fsockopen 无法连接到邮件服务器 [101-Network is unreachable]”,是哪里没有配置好吗?

注意1:本地phpstudy里的网站邮箱提醒是可以的,和线上网站的邮箱服务器 端口等配置是一模一样的;

注意2:采用的是qq邮箱服务器:ssl://smtp.qq.com


线上网站日志报错如下:


<?php defined('SYSTEMPATH') || exit('No direct script access allowed'); ?>


ERROR - 2021-03-27 11:05:35 --> 任务执行失败(488#邮件发送失败:Error:fsockopen 无法连接到邮件服务器 [101-Network is unreachable]):{"name":"form_liuyan_post","data":{"title":"科技部测试3","shouji":"","youxiang":"科技部测试3","xinxi":"","cpxz":"Mini Excavator","guojia":"","nxw":"email","status":0,"uid":"1","author":"admin","inputip":"96.45.187.49","inputtime":1616814333,"displayorder":0,"tableid":0,"id":698,"0":1,"1":698,"sys_time":1616814333,"ip_address":"未知地区"},"config":{"use":"1","username":"admin","email":"1"}}

ERROR - 2021-03-27 11:15:10 --> 任务执行失败(489#邮件发送失败:Error:fsockopen 无法连接到邮件服务器 [101-Network is unreachable]):{"name":"form_liuyan_post","data":{"title":"111","shouji":"","youxiang":"1111","xinxi":"","cpxz":"Mini Excavator","guojia":"","nxw":"email","status":0,"uid":"1","author":"admin","inputip":"39.85.152.25","inputtime":1616814909,"displayorder":0,"tableid":0,"id":699,"0":1,"1":699,"sys_time":1616814909,"ip_address":"山东"},"config":{"use":"1","username":"admin","email":"1"}}

ERROR - 2021-03-27 11:36:12 --> 任务执行失败(490#邮件发送失败:Error:fsockopen 无法连接到邮件服务器 [101-Network is unreachable]):{"name":"form_liuyan_post","data":{"title":"222","shouji":"","youxiang":"222","xinxi":"","cpxz":"Mini Excavator","guojia":"","nxw":"email","status":0,"uid":"1","author":"admin","inputip":"39.85.152.25","inputtime":1616816171,"displayorder":0,"tableid":0,"id":700,"0":1,"1":700,"sys_time":1616816171,"ip_address":"山东"},"config":{"use":"1","username":"admin","email":"1"}}

ERROR - 2021-03-27 11:41:22 --> 任务执行失败(491#邮件发送失败:Error:fsockopen 无法连接到邮件服务器 [101-Network is unreachable]):{"name":"form_liuyan_post","data":{"title":"333","shouji":"","youxiang":"333","xinxi":"","cpxz":"Mini Excavator","guojia":"","nxw":"email","status":0,"uid":"1","author":"admin","inputip":"39.85.152.25","inputtime":1616816481,"displayorder":0,"tableid":0,"id":701,"0":1,"1":701,"sys_time":1616816481,"ip_address":"山东"},"config":{"use":"1","username":"admin","email":"1"}}




回帖
  • 迅睿框架技术-邢哥
    #1楼    迅睿框架技术-邢哥
    2021-03-27 11:56:33
    Chrome 0
    101-Network is unreachable是网络问题,你让你服务商检查下线上的网络
  • 前端
    #2楼    前端
    2021-03-27 11:59:02
    Chrome 0
    迅睿框架技术-邢哥 本地的网站测试邮箱发送是可以的呀,邮箱服务器线上本地是一样的配置。我再想线上的网站是不是自己哪里还没有配置好呢?
  • 天枫
    #3楼    天枫
    2021-03-27 11:59:08
    Chrome 0
    如果是腾讯云就需要去控制面板单独申请端口,阿里云不是很清楚
  • 王兴业
    #4楼    王兴业
    2021-03-27 12:00:55
    Chrome 0
    100%是服务器哪里限制了,我阿里云服务器用着没任何问题
    满意答案
  • 前端
    #5楼    前端
    2021-03-27 13:29:54
    Chrome 0
    王兴业 你这里说的服务器是指的可能是我腾讯的邮箱服务器方限制了 对吗?
  • 前端
    #6楼    前端
    2021-03-27 13:32:58
    Chrome 0
    迅睿框架技术-邢哥 你这里说的“服务商”是指的网站服务器/主机服务商,还是说邮箱服务器的服务商呢?
  • 前端
    #7楼    前端
    2021-03-27 14:08:10
    Chrome 0
    迅睿框架技术-邢哥 分别测试了阿里云邮箱和163邮箱,点击后台的“发送测试”后提示:“连接拒绝”,如下:fsockopen 无法连接到邮件服务器 [111-Connection refused]
  • 天枫
    #8楼    天枫
    2021-03-27 14:38:12
    Chrome 0
    你是不是安装的宝塔面板,看看面板开启了对应端口了没有
  • 前端
    #9楼    前端
    2021-03-27 14:50:33
    Chrome 0
    天枫 这个不是宝塔的,我问下主机服务商开放腾讯邮箱的端口了没
  • 前端
    #10楼    前端
    2021-03-31 13:42:20
    Chrome 0
    @王兴业:感谢帮助